NEW YORK (CNNMoney.com) -- Stocks closed near session highs Friday, with the Dow erasing its losses for the year, as investors welcomed a better-than-expected report on the U.S. job market.
The Dow Jones industrial average (INDU) rose 128 points, or 1.2%. The S&P 500 (SPX) gained 14 points, or 1.3%, and the Nasdaq (COMP) composite rose 33 points, or 1.5%.
The rally pushed the Dow back into the black for the year. At roughly 10,448 points, the index is up nearly 0.2% since it closed at 10,428 points on Dec. 31.
All three major gauges ended the week with gains. The Dow added 2.9% this week, while the S&P 500 rose 3.7%, and the Nasdaq advanced 3.7% over the last five days. It was the first weekly gain for all three gauges in three weeks.
The advance was broad-based. Caterpillar (CAT, Fortune 500) and Boeing (BA, Fortune 500) led gainers on the Dow, in what was a solid week for industrial names. But shares of consumer-linked stocks, Coca Cola (KO, Fortune 500) and McDonalds (MCD, Fortune 500), weighed on the blue-chip index. Telecoms AT&T (T, Fortune 500) and Verizon (VZ, Fortune 500) lagged, while tech bellwether IBM (IBM, Fortune 500) added over 2%.
Where to invest $10,000The better-than-expected jobs report, which came on the heels of improved manufacturing data earlier in the week, helped ease some concerns about the economy. But a report on activity in the services sector came in weaker than expected.
Meanwhile, yields on U.S. Treasury bonds and notes rose as demand for safe-haven assets waned. Gold prices fell.
"It's all about the payrolls number," said Tom Schrader, managing director at Stifel Nicolaus.
While the jobs data suggests the economy could avoid a "double-dip" recession, he said investors remain nervous about the outlook for short-term growth. In addition, concerns about growth in China and lingering debt problems in Europe also continue to weigh on the market.
"There's still a lot to worry about," Schrader said.
Trading volume was light with many market participants on vacation. On the New York Stock Exchange, advancers beat decliners by roughly two to one on volume of about 1 billion shares.
Looking ahead, there are relatively few economic reports for investors to digest next week and one fewer trading day on the calendar. U.S. markets will be closed Monday for the Labor Day holiday.
Stocks had ended higher Thursday as investors cheered strong sales results from major retailers and better-than-expected reports on pending home sales and jobless claims.
Economy: The government's widely anticipated jobs report showed that the U.S. economy lost jobs for a third straight month in August, but employers cut fewer positions than economists had forecast.
The economy lost 54,000 last month. That compared with 131,000 jobs shed in July. Economists were expecting employers to slash 121,000 positions in August.
The private sector added 67,000 jobs, beating economists' expectations for a gain of 44,000. The unemployment rate ticked up to 9.6%, from 9.5% in July, in line with expectations.
"Payrolls continue to be added in the private sector, but at a painfully slow pace," said Jim Baird, chief investment strategist for Plante Moran Financial Advisors. "Companies remain in a preservation mode and have continued to seek out alternative ways of increasing production."
Quit whining, Wall Street. Nothing has changed.Meanwhile, the Institute for Supply Management's (ISM) services index slipped to 51.5 in August from 54.3 in July. Economists had forecast a decline to 53, according to consensus estimates from Briefing.com.
World markets: European shares closed higher. The CAC 40 in France rose 1.2%, the DAX in Germany gained 0.8%, and Britain's FTSE 100 gained 1%.
Asian markets ended mostly higher. Japan's benchmark Nikkei index rose 0.6%, and the Hang Seng in Hong Kong added 0.5%. The Shanghai Composite ended unchanged.
Currencies and commodities: The dollar fell against the euro and the British pound but was higher versus the Japanese yen.
Oil futures for October delivery fell 64 cents to $74.38 a barrel. Gold for December delivery fell $2.30 to $1,251.10 an ounce.