A wave of buying sent U.S. stocks solidly higher on Wall Street Thursday, pushing the Dow Jones Industrial Average above the all-time high it closed at in January.

The S&P 500, the benchmark for many index funds, was also above the peak it reached last month.

A weaker dollar and a mix of mostly encouraging economic reports helped put investors in a buying mood. Technology stocks, banks and health care companies accounted for much of the rally.

Energy and industrial companies lagged. Homebuilders slumped following new data showing flat home sales in August and surging mortgage rates.

KEEPING SCORE: The S&P 500 index rose 23 points, or 0.8 percent, to 2,931 at closing time. The Dow Jones Industrial Average gained 254 points, or 1 percent, to 26,660. The Nasdaq composite climbed 78 points, or 1 percent, to 8,029. The Russell 2000 index of smaller companies picked up 16 points, or 1 percent, to 1,719.

ENCOURAGING DATA: Investors welcomed a batch of positive data on the economy. The Labor Department’s weekly tally of applications for unemployment aid was lower than expected, with claims slipping last week to 201,000. That’s the lowest level since November 1969.

An economic index from the Federal Reserve’s bank in Philadelphia also topped forecasts, and the Conference Board’s index of leading economic indicators, designed to anticipate economic conditions three to six months out, rose 0.4 percent last month. While that came in slightly below forecasts, it still suggests the economy is on sure footing, said Tracie McMillion, global head of asset allocation for Wells Fargo Investment Institute.

THE QUOTE: “With a (reading) that high it’s very unlikely that there’s a recession on the horizon,” McMillion said. “The U.S. market is responding to this foundation of economic strength. Pair that with a dollar that has started to depreciate a little bit and that’s good news for U.S. companies that trade abroad.”

CURRENCIES: The dollar rose to 112.51 yen from 112.27 yen on Wednesday. The euro strengthened to $1.1771 from $1.1674. The British pound climbed to $1.3258 from $1.3145.

TECH ON A TEAR: Some of the biggest gains went to technology companies. Apple gained 0.9 percent to $220.43, while Microsoft climbed 1.6 percent to $113.47.

HEALTHY TURN: Health care companies also posted solid gains. Cardinal Health rose 2.7 percent to $55.38.

OVERHAUL GAINS: Under Armour jumped 6.1 percent to $39.53 after the athletic apparel company said it will cut 400 jobs, or 3 percent of its staff, and will spend more money on a restructuring plan.

SITTING PRETTY: Herman Miller gained 6.1 percent to $39.53 after the furniture company reported a larger profit than analysts expected.

HOUSING RED FLAGS: Homebuilders slumped after the National Association of Realtors said sales of existing U.S. homes were flat in August after declining the previous four months. Separately, mortgage buyer Freddie Mac said the average rate on 30-year, fixed-rate mortgages jumped to 4.65 percent this week, the highest level since May. William Lyon Homes tumbled 6.6 percent to $17.41.

DOES NOT COMPUTE: Red Hat slid 7 percent to $133.17 after the open-source software company’s sales disappointed investors.

FLEETING HIGH: Canadian marijuana producer Tilray slumped 13 percent to $186.21 a day after the stock soared 38 percent.

ENERGY: Benchmark U.S. crude slipped 0.5 percent to $70.77 a barrel in New York. Brent crude, used to price international oils, was down 0.9 percent to $78.65.

BOND YIELDS: Bond prices rose. The yield on the 10-year Treasury fell to 3.07 percent from 3.08 percent late Wednesday.

METALS: Gold rose 0.2 percent to $1,211.30 an ounce. Silver gained 0.2 percent to $14.31 an ounce. Copper added $0.4 percent to $2.74 a pound.

MARKETS OVERSEAS: Major indexes in Europe finished higher. Germany’s DAX gained 0.9 percent, while France’s CAC 40 rose 1.1 percent. Britain’s FTSE 100 added 0.5 percent. Earlier in Asia, Japan’s Nikkei 225 finished flat. The Kospi in South Korea added 0.7 percent. Hong Kong’s Hang Seng index rose 0.3 percent. Australia’s S&P/ASX 200 dropped 0.3 percent. Shares fell in Taiwan but rose in Indonesia, Thailand and Singapore.

© The Associated Press. All rights reserved.