Even in a daylong sideways drift, the Standard & Poor's 500 index managed to eke out its third record close in three days.
U.S. stocks ended essentially flat on Wednesday after spending much of the day wavering between tiny gains and losses.
The S&P 500 notched a gain of one-tenth of a point over the day before, extending its rise for the week.
Overall trading volume was about one-third below the recent average, reflecting an absence of major market-moving news and the approaching Labor Day holiday weekend.
It was a sharp contrast to the day before, when the S&P 500 closed above 2,000 for the first time.
“Having achieved this 2,000 level, the market is simply taking a pause, catching its breath,” said David Lebovitz, global market strategist at JPMorgan Chase.
U.S. stock futures pointed to a mixed opening in premarket trading Wednesday. The major stock indexes opened slightly higher, with the S&P 500 index at 2,001 points.
Early on, investors largely had their eye on company earnings. Retailers Express and Tiffany & Co. were among the companies to post better-than-expected results. Express' shares surged 12.7 percent, adding $1.86 to $16.45., while Tiffany rose 98 cents to $101.75.
At 10 a.m. Eastern the Congressional Budget Office offered a new assessment of the nation's economy, projecting it will grow by just 1.5 percent this year. The forecast was considerably more pessimistic than the Obama administration's, which predicted the economy would expand by 2.6 percent.
Stocks declined shortly afterward, then recovered, only to waver through small gains and losses through much of the day.
The S&P 500 rose 0.10 of a point to 2,000.12.
The Dow Jones industrial average rose 15.31, or 0.1 percent, to 17,122.01. The Nasdaq composite fell 1.02 points to 4,569.62.
The Dow is 16 points shy of its own record closing high set July 16. The Nasdaq is still well below its dot-com era record.
Major U.S. indexes are riding a three-week streak of gains and are up for the year.
Investors have been encouraged in recent weeks by strong corporate earnings and data that point to a strengthening economy after a sluggish start to the year. The trend has helped extend a five-year bull market, lifting indexes to new records this year.
It's likely that trading will continue to thin further in the next couple of days as more investors get in vacation mode for the Labor Day holiday weekend.
Before that, however, the market will get a look at a few more economic barometers.
On Thursday, the Commerce Department delivers its latest estimate of how much the U.S. economy grew in the second quarter. Economists are looking for 3.9 percent growth after a decline of 2.1 percent in the first quarter.
New figures on personal income and spending and on how consumers feel about the economy, are due out on Friday.
Among stocks making moves Wednesday:
— Best Buy notched the biggest gain among companies in the S&P 500, adding $1.89, or 6.3 percent, to $31.69.
— U.S. medical device maker Medtronic bought privately held Italian company NGC Medical S.p.A. for $350 million. NGC manages cardiovascular suites, operating rooms and intensive care units for hospitals. Medtronic already held a 30 percent stake in the business. Medtronic slipped 25 cents to $63.27.
Bond prices rose. The yield on the 10-year Treasury note fell to 2.36 percent. Benchmark U.S. crude rose 2 cents to $93.88 a barrel in New York. In metals trading, gold fell $1.80 to $1,283.40 an ounce, silver rose 2 cents to $19.41 an ounce and copper fell a penny to $3.18 a pound.