Another day of listless trading on Wall Street ended Tuesday with the major stock indexes closing out having shifted marginally from the day before.
Gains in energy and technology companies were cancelled out by losses among banks, phone companies and other sectors.
A rebound in crude oil prices helped lift energy stocks, which led the gainers. Banks posted the largest losses.
Investors were making modest moves ahead of Federal Reserve chair Janet Yellen's testimony before Congress on Wednesday and Thursday, and the release of the Fed's Beige Book, an economic snapshot used by the central bank to gauge US economic trends.
The market will key in on both as it tries to discern how Fed policy on interest rates may play out this year and next, said Sameer Samana, global quantitative strategist for the Wells Fargo Investment Institute.
The Standard & Poor's 500 index fell 1.90 points, or 0.1%, to 2,425.53. The Dow Jones industrial average gained 0.55 points to 21,409.07. The Nasdaq composite rose 16.91 points, or 0.3%, to 6,193.30. The Russell 2000 index of smaller-company stocks added 4.58 points, or 0.3%, to 1,413.05.
Nine of the 11 industry groups in the S&P's 500 index declined. More stocks rose than fell on the New York Stock Exchange.
Bond prices rose. The yield on the 10-year Treasury note fell to 2.36% from 2.38% late Monday.
The major indexes got off to an uneven start early on, then veered sharply lower before midday as news broke that President Donald Trump's eldest son, Donald Trump Jr., had released an email chain from last year that shows the Trump scion discussing plans to hear damaging information on Hillary Clinton from what was described to him as a Russian government effort to aid his father's campaign.
The news stoked investor worries over whether the headlines could lead to more political uncertainty in Washington and potentially hold up tax cuts, regulatory reform and other business-friendly policy initiatives that the market has been expecting. But the market mostly bounced back from the stumble by the end of the day.
Mostly, investors appeared to be taking a wait-and-see approach ahead of the star of Yellen's two-day appearance before Congress.
Starting Wednesday, traders will be listening for clues as to how aggressively the Fed will continue to raise rates and start to unwind its big bond-buying program. The latest US economic reports, particularly for jobs, have been upbeat.
Beyond the Fed, investors were also looking ahead to the next corporate earnings reporting season, which ramps up this week. PepsiCo served up its results early Tuesday. Delta Air Lines, JPMorgan Chase and Wells Fargo are among the big companies due to report their latest quarterly results this week.
Energy sector companies led the gainers Tuesday. Devon Energy rose 80 cents, or 2.7%, to 30.53 dollars. Newfield Exploration added 47 cents, or 1.8%, to 26.83 dollars.
Financials companies took heavy losses. T. Rowe Price Group slid 1.89 dollars, or 2.5%, to 75.16 dollars. Invesco lost 75 cents, or 2.1%, to 35.72 dollars.
PepsiCo reported better-than-expected quarterly results as higher prices for drinks and snacks boosted both profit and revenue for the beverage and packaged foods company. PepsiCo's sales volumes in North America were soft, however. That appeared to weigh on the company's shares, which slid 53 cents, or 0.5%, to 113.74 dollars.
Rent-A-Center was among the stocks that made big moves. The company climbed 8.9% after its board of directors rejected a takeover offer of 15 dollars a share from Vintage Capital Management. Rent-A-Center rose 99 cents to 12.09 dollars.
The parent company of the disappearing-message service Snapchat slumped a day after it closed below its IPO price. Snap slid 1.52 dollars, or 8.9%, to 15.47 dollars.
Major markets overseas were mixed Tuesday.
In Europe, Germany's DAX lost 0.1%, while France's CAC40 fell 0.5%. Britain's FTSE 100 slid 0.5%. Earlier in Asia, Japan's Nikkei 225 index gained 0.6% on expectations the yen will weaken further against the dollar as the central bank strives to keep long-term bond yields low. Hong Kong's Hang Seng added 1.5%, while the Kospi in South Korea climbed 0.6%.
The dollar fell to 113.84 from 114.05 yen late Monday. The euro strengthened to 1.1476 dollars from 1.1403 dollars.