(AP) -- A broad rally on Wall Street pushed stocks higher Thursday, nudging the S&P 500 and Nasdaq indexes to record highs.
The gains reversed the market's modest losses from a day earlier. Despite a choppy week of trading, the major indexes are on pace for weekly gains.
The S&P 500 rose 0.6%, eclipsing its previous all-time high set Tuesday. Technology stocks, retailers and other consumer-facing companies, and communications stocks helped lift the market. Banks made solid gains as long-term bond yields rose, which lenders rely on to charge higher interest rates on loans. The yield on the 10-year Treasury rose to 1.21% from 1.18% late Wednesday. Only Health care and materials stocks fell.
Encouraging jobs data and a strong batch of corporate earnings reports helped put investors in a buying mood. Traders were also looking ahead to the government's latest monthly national jobs report Friday morning, which should provide insight into how the labor market is faring amid a surge in cases of the highly contagious COVID-19 delta variant.
"You do have a little bit of trepidation and concern around how the Covid flareups are going to impact things," said Andrew Mies, chief investment officer at investment advisory firm 6 Meridien. "I don't think that anybody has a great idea of what the magnitude of this could look like if we go out two or three weeks."
The S&P 500 index rose 26.44 points to 4,429.10. The Dow Jones Industrial Average gained 271.58 points, or 0.8%, to 35,064.25. The Nasdaq climbed 114.58 points, or 0.8%, to 14,895.12.
Smaller company stocks outpaced the broader market in a sign that investors are feeling more confident about economic growth. The Russell 2000 rose 39.69 points, or 1.8%, to 2,236.01.
Wall Street got another glimpse of the recovering jobs market after the Labor Department reported that unemployment claims - -- a proxy for layoffs -- dropped last week by 14,000. The generally encouraging report follows a weak report from payroll processor ADP on Wednesday showing that the private sector added jobs at a much slower pace than expected in July.
The labor market has lagged other areas of the economy during the recovery from the virus pandemic. Investors will get a more comprehensive picture on Friday when the Labor Department releases its July jobs report.
Investors also weighed another batch of earnings reports. Underwear maker Hanesbrands jumped 6.3% after reporting solid second-quarter financial results. Booking Holdings rose 5.9% after it reported solid revenue.
Several companies that benefited from the shift in consumer habits during the height of the pandemic slipped after releasing disappointing results or forecasts. Online crafts marketplace Etsy fell 9.7% after giving investors a weak sales forecast as more people return to shopping in person. Video-streaming service Roku shed 4% after active accounts and streaming hours fell short of analysts' forecasts.
Weber, the pioneering grill maker, jumped 17.9% in its stock market debut.