U.S. stocks inched a bit further into record territory Wednesday after teeter-tottering through the day. The Standard & Poor's 500 index rose just a sliver, but it was enough for a seventh straight gain.
The S&P 500 climbed 3.16 points, or 0.1%, to 2,537.74 after flipping between slight losses and gains through the day. The seven-day win streak is the index's longest since a similar run in May.
The Dow Jones industrial average rose 19.97 points, or 0.1%, to 22,661.64, and the Nasdaq composite ticked up 2.91, or less than 0.1%, to 6,534.63. All three indexes added to records set a day earlier.
A report from payroll processor ADP said hiring by private employers weakened sharply last month, a setback for an economy that had been enjoying a generally strengthening job market. But economists and investors were expecting a low number because of the damage done by hurricanes Harvey and Irma.
The government is set to release its more comprehensive jobs report Friday; economists are forecasting a weaker number than a month earlier.
Other reports painted a more encouraging picture. One showed that the nation's services companies expanded last month at their fastest rate in more than a decade. The report from the Institute for Supply Management followed one on Monday that showed U.S. manufacturing is also growing strongly.
"Things continue to be very solid, and the economic numbers continue to be very strong not only here, but throughout the world," said Kirk Hartman, global chief investment officer for Wells Fargo Asset Management.
Mylan surged 16.2% to $37.80, the biggest gain in the S&P 500, after federal regulators approved its generic version of Teva's Copaxone drug for multiple sclerosis.
Utility stocks were also strong. Those in the S&P 500 jumped 1.1%.
On the losing end was Office Depot, which plunged 17.6% to $3.78 after it announced a $1-billion purchase of an IT services and products provider and cut its forecast for operating profit this year.
Bond insurers were weak after President Trump suggested in an interview with Fox News that the federal government may "wipe out" Puerto Rico's debt after the island's struggle to recover from Hurricane Maria.
MBIA dropped 8.4% to $7.95. Ambac Financial Group slid 5.5% to $16.70. Assured Guaranty fell 2.9% to $37.58.
In the bond market, Treasury yields held relatively steady even as speculation rose about who the next chair of the Federal Reserve will be after Janet Yellen's term ends in February. Trump has said previously that he may consider Yellen for another term, but other names have been floated too.
Under Yellen and her predecessor, Ben Bernanke, the Federal Reserve has unleashed unprecedented amounts of stimulus for the economy in hopes of recovering from the Great Recession. The central bank is now slowly pulling back the aid, and investors wonder if the next Fed chair may be more aggressive about it — "hawkish," as Wall Street traders call it.
"I think it's reasonable to expect that the next Fed will be more hawkish," Hartman said. "To be fair, the Fed itself has signaled that it wants to be more hawkish. I am not a big believer that, in the near term, whoever gets the nod is going to do anything dramatic."
The yield on the 10-year Treasury edged down to 2.32% from 2.33%. The two-year yield slipped to 1.47% from 1.48%.
Benchmark U.S. crude fell 44 cents to settle at $49.98 a barrel. Brent crude, the standard for international oil prices, fell 20 cents to $55.80 a barrel.
Natural gas rose 5 cents to $2.94 per 1,000 cubic feet. Heating oil rose 2 cents to $1.77 a gallon. Wholesale gasoline rose 2 cents to $1.58 a gallon.
Gold rose $2.20 to settle at $1,276.80 an ounce. Silver fell 3 cents to $16.62 an ounce. Copper was close to flat at $2.96 a pound.
The dollar rose to 112.98 Japanese yen from 112.90 yen. The euro rose to $1.1764 from $1.1752. The British pound inched up to $1.3250 from $1.3247.
In overseas markets, France's CAC 40 fell 0.1%, Germany's DAX gained 0.5%, and the FTSE 100 in London was close to flat. Japan's Nikkei 225 added 0.1%, and the Hang Seng in Hong Kong climbed 0.7%.
2:20 p.m.: This article was updated with closing prices, context and analyst comment.