Stocks end lower after a brief afternoon recovery fades

Stocks couldn’t hold on to a brief afternoon gain and wound up ending mostly lower. The S&P 500 and the Dow Jones Industrial Average each lost about 0.2% Thursday, while the tech-heavy Nasdaq managed to eke out a gain of 0.1%. More stocks fell than rose in the S&P 500, and most of the index’s sectors took slight losses. Industrial and health care companies did the worst, while some retailers rose after the government reported a surprise gain in retail sales last month. The yield on the 10-year Treasury note rose to 1.33% from 1.30% a day earlier.

THIS IS A BREAKING NEWS UPDATE. AP’s earlier story follows below.

Stocks recovered from a midday slump and were edging higher in late afternoon trading on Wall Street Thursday, keeping major indexes in the green for the week.

The market had edged higher in the early going after a surprisingly good retail sales report for August, but then quickly turned lower and remained there for much of the day. By late afternoon, major indexes had clawed back the ground they lost earlier and turned slightly higher.

The S&P 500 was up a bit less than 0.1% at 3:10 p.m. Eastern after clawing back much of the ground it lost in the middle of the day. The Dow Jones Industrial Average was also up less than 0.1% while the Nasdaq edged up 0.3%.

Technology companies were the biggest drag on the market, along with communications and health care stocks. Nvidia fell 0.9% and Facebook fell 0.4%.

Losses for banks were tempered by rising bond yields that help them charge more lucrative interest on loans. The yield on the 10-year Treasury rose to 1.33% from 1.30% late Wednesday.

A mix of retailers gained ground following the retail sales report, which showed a surprise jump in August. Gap rose 2.3% and Bath & Body Works rose 2.3%.

Investors were given another mixed bag of economic data to review as they try to gauge the economic recovery’s path ahead amid the virus pandemic, inflation and other factors.

The Commerce Department reported that retail sales rose 0.7% last month. Economists had expected a 0.85% contraction over concerns that people would have pulled back on spending as the highly contagious delta variant of COVID-19 prompts consumers to pull back on shopping.

Consumers simply shifted spending to more online purchases and away from businesses that are still struggling to recover from the pandemic, including restaurants and other business that rely on in-person spending.

Wall Street is also reviewing a disappointing report showing that weekly unemployment claims rose more than expected.

Markets have been choppy as investors shift money between various sectors while they parse any data coming out that could give more clues and signals on the potential direction of the economy and how the Federal Reserve will react.

The central bank will meet next week, and investors will listen closely for any comments about when and how much it will taper support for low interest rates that have helped fuel gains for stocks throughout the year.

“What you’re seeing over the last month has been hesitation to really commit,” said J.J. Kinahan, chief strategist with TD Ameritrade. “Until we have more clarity from the Fed, the pattern will continue.”