By Joe Wallace

U.S. stocks edged higher Thursday after data showed another leap in consumer prices and a continuing recovery in the labor market as the economy emerges from the Covid-19 pandemic.

The S&P 500 ticked up 0.4%, putting it on pace for a new closing record. The Dow Jones Industrial Average jumped 0.6%, and the technology-focused Nasdaq Composite rose 0.4%. All three gauges edged slightly lower on Wednesday.

The major indexes have moved in a narrow range just below all-time highs in recent weeks. Investors are balancing optimism in the economic recovery against concerns about inflation and supply shortages, among other risks.

Consumer prices rose 5% in May from a year earlier, the Labor Department said, marking the highest annual inflation rate in nearly 13 years. Investors are seeking to determine whether the acceleration will fade away or prove long-lasting, potentially prompting the Federal Reserve to dial back efforts to stimulate the economy.

"As long as we've got cheap money, we've got a savings glut, not just in the West but in Asia. I think there is decent support for stocks," said Jane Foley, head of foreign-exchange strategy at Rabobank. "I don't imagine there is going to be a really serious downturn."

Inflation expectations have eased in recent weeks, but it remains at the top of mind for many money managers. Thursday's data won't end the arguments over how inflation may play out over the coming years, Ms. Foley said before the data came out.

"What's quite stunning given the debate over inflation that has been really dominating market attention this year is that bond yields this week have slipped so far," she added.

On Thursday, the yield on 10-year Treasury notes edged up to 1.517%. It settled Wednesday at 1.489%, its lowest level in more than three months. A combination of tepid economic data, the Federal Reserve's message that it won't quickly withdraw stimulus to ward off inflation, and strong demand for bonds from investors overseas have been dragging yields down, analysts say.

Separate data showed jobless claims, seen as a proxy for layoffs, fell to 376,000 last week, extending a recent decline for unemployment benefits and adding to signs of a healing labor market.

In corporate news, GameStop shares fell almost 6%. The original meme stock and videogame retailer said Wednesday it was planning a stock offering after resetting its leadership team.

Oxford Industries, the owner of Tommy Bahama, Lilly Pulitzer and Southern Tide brands, climbed 13% after reporting a first-quarter profit on higher sales.

The euro was 0.2% lower against the dollar at $1.2162 after the European Central Bank kept its key interest rates on hold and said it would keep buying bonds at a faster pace than earlier in the year.

Overseas markets were mixed. Despite a decline in travel, leisure and retail stocks, the Stoxx Europe 600 ticked up 0.1%. The regional gauge closed at a record Wednesday.

Asian markets closed broadly higher. The Shanghai Composite Index ended the day up 0.5%, while Japan's Nikkei 225 edged up 0.3%.

-- Amber Burton contributed to this article.

Write to Joe Wallace at Joe.Wallace@wsj.com

(END) Dow Jones Newswires

06-10-21 1015ET