Afternoon Trading Led by Tech and Banks

(AP) -- Technology companies and banks led U.S. stock indexes modestly higher in afternoon trading Thursday, extending gains from the day before. Big retail chains and other consumer-focused stocks were among the gainers. Health care companies were among the laggards. Investors were making moves ahead of the next corporate earnings reporting season, which ramps up Friday.

KEEPING SCORE: The Standard & Poor's 500 index gained 4 points, or 0.2 percent, to 2,448 as of 1:28 p.m. Eastern time. The Dow Jones industrial average rose 18 points, or 0.1 percent, to 21,550. The Nasdaq composite added 12 points, or 0.2 percent, to 6,273. The Russell 2000 index of smaller-company stocks slid 5 points, or 0.4 percent, to 1,418.

EARNINGS AHEAD: Investors were also looking ahead to Friday, when Citigroup, JPMorgan Chase and other big banks kick off the second-quarter reporting season. The market expects earnings per share growth of about 7 percent from companies in the S&P 500.

"Markets are really biding their time until we get into tomorrow's more robust earnings releases," said Eric Wiegand, senior portfolio manager for Private Wealth Management at U.S. Bank.

FED TALK: Federal Reserve Chair Janet Yellen testified for a second day before Congress. She spoke about the dual risks of inflation: prices rising too slowly and prices accelerating too quickly. Her comments appeared to be an effort to modify the impact of her comments before a House committee on Wednesday.

The House remarks were seen as signaling that the Fed might slow the pace of rate hikes if inflation does keep falling below the Fed's 2 percent target. Those remarks assuaged concerns among some traders that the Fed was raising interest rates too quickly in the face of stalling inflation and sluggish U.S. economic growth, setting off a broad market rally.

TECH SURGE: Technology companies were up the most. EBay gained 67 cents, or 1.9 percent, to $36.71. NetApp rose $1.04, or 2.6 percent, to $41.21.

RETAIL RALLY: Several retail chains were notching gains. Macy's rose $1.13, or 5.3 percent, to $22.36. Gap added $1.29, or 6 percent, to $22.86. Target climbed 5.2 percent after it raised its second-quarter forecasts and said sales and customer traffic grew. The stock gained $2.66 to $53.52.

FINANCIALS CLIMB: Banks and other financials stocks rose. Morgan Stanley added 72 cents, or 1.6 percent, to $45.68. T. Rowe Price Group added $4.30, or 5.7 percent, to $79.88.

BIG GAINER: NRG Energy climbed 7.1 percent a day after the company disclosed plans to raise up to $4 billion through asset sales in order to lower its debt. The stock was the biggest gainer in the S&P 500, climbing $1.50 to $22.59.

UNDER THE WEATHER: Health care stocks were among the laggards. Mylan fell 59 cents, or 1.5 percent, to $39.17. Zimmer Biomet Holdings slid $3.72, or 2.9 percent, to $130.08.

TURBULENT QUARTER: Delta Air Lines was down 2 percent after the company reported a smaller profit and less revenue than analysts expected. The stock shed $1.13 to $54.35.

BONDS: Bond prices fell. The yield on the 10-year Treasury note rose to 2.35 percent from 2.33 percent late Wednesday.

ENERGY: Benchmark U.S. crude gained 54 cents, or 1.2 percent, to $46.03 per barrel on the New York Mercantile Exchange. Brent crude, used to price international oils, added 59 cents, or 1.2 percent, to $48.33 per barrel in London.

CURRENCIES: The dollar rose to 113.26 yen from 113.25 yen late Wednesday. The euro weakened to $1.1397 from $1.1416.

MARKETS OVERSEAS: In Europe, Germany's DAX rose 0.1 percent, while the CAC 40 in France gained 0.3 percent. The FTSE 100 index of leading British shares was flat. In Asia, Hong Kong's Hang Seng index jumped 1.2 percent after a report showed that Chinese trade growth accelerated for a second month in June. Japan's Nikkei 225 stock index was flat. South Korea's Kospi gained 0.7 percent.