NEW YORK (AP) -- Stocks recovered from an early loss Thursday, pushing the Dow Jones industrial average within four points of 13,000. Investors were encouraged by more good news on U.S. jobs, but gains were limited by poor results from retailers such as Safeway and Kohl's.
The Dow was up 35 points at 12,973 just after 3 p.m. EST. In the morning, it rose as high as 12,996. On Tuesday, the Dow briefly traded above 13,000 for the first time in nearly four years.
The broader Standard & Poor's 500 was up three points to 1,361, and the Nasdaq composite was up 16 points to 2,950.
Investors were encouraged after the government reported that the number of people seeking unemployment benefits last week was unchanged, and the four-week average was the lowest in four years.
High unemployment has been a problem for retailers, which have been forced to slash prices even though they are paying more to make and ship their goods. The burden showed in Thursday's earnings reports.
Kohl's, the department store chain, sank 5 percent after weak holiday sales caused it to miss Wall Street estimates for revenue and earnings. Grocery store chain Safeway Inc. plunged 10 percent after reporting a 6 percent drop in profit.
Part of the problem is the rising cost of gas, which could hurt the economic recovery. The price of gas is rising as tensions mount over Iran's nuclear program. A gallon of regular sells for $3.61 on average, the highest on record this time of year.
The price of oil jumped again Thursday, to $107.83, a nine-month high and up $1.52 for the day. Besides Iran, analysts blamed the falling U.S. dollar, which makes oil more expensive for investors holding foreign money.
The euro jumped to a two-month high against the dollar, $1.3333, up almost a penny from Wednesday, after business confidence surged in Germany.
Dillard's, another department store chain, and the discount chain Target also missed analysts' estimates. Earlier this week, Wal-Mart fell short on earnings and revenue after aggressive discounts for the holidays cut into profit margin.
Sears Holdings Corp., which owns Sears, Kmart and Land's End, also missed estimates for revenue and per-share earnings. Its stock soared 17 percent, but that was because it outlined plans to spin off some stores and sell others.
For the most part, U.S. stocks have been rising since Thanksgiving, as the most potent fears of last summer -- that the country would enter another recession, and that the European debt crisis would damage the U.S. economy -- have dissipated.
The market has yet to settle into a definitive trend, however. In the 35 completed trading days so far this year, the Dow has risen on 20 and fallen on 15.
"On Tuesday the world is ending, on Wednesday the opposite happens, after two or three weeks we're right where we started because not much happened," said Bill Hampel, chief economist of the Credit Union National Association.
Of the S&P 500's 10 industry groups, seven were up in afternoon trading. Financials led the charge forward, partly because of a calm day for news about Greek debt talks. U.S. bank stocks were pummeled last year as investors worried about exposure to European debt, but some of those concerns have eased.
On Thursday, the Greek Parliament approved a plan to wipe out €107 billion of debt that it owes to investors who hold its government bonds. Greece is expected to make a formal offer to bondholders Friday.
Earlier this week, Greece locked down a second bailout from the International Monetary Fund and other countries that use the euro currency. The bailout is designed to prevent a default on Greece's debt, which could shock the world financial system.
But deep problems continue to haunt Greece, including a recession and the prospect that investors will shy away from buying its bonds in the future. The U.S. market has been yanked up and down this year by incremental headlines from Greece.
David Trone, managing director of JMP Securities, a brokerage, said financial stocks were up because of the relative calm in Greece. U.S. bank stocks had plummeted last year over fears about their exposure to European debt.
Otherwise, Thursday's news out of Greece was too incremental to move the market much one way or the other. "Investors aren't feeling any happier or any worse than they were yesterday," Trone said.
In the bond market, yields for U.S. Treasurys fell after the government sold seven-year notes at a lower yield than the average over the past four months. The yield on the 10-year Treasury fell to 1.98 percent from 2 percent Wednesday.
Among other stocks making big moves in the U.S.:
-- HSN Inc., which runs a cable TV channel for home shopping, rose 1.9 percent after its profit climbed 13 percent in the most recent quarter.
-- Vivus Inc., a drugmaker, rose 80 percent after federal regulators said that Qnexa, a drug Vivus is developing for weight loss, should be approved.
-- CEC Entertainment Inc., which owns Chuck E. Cheese children's restaurants, rose 1.6 percent after an analyst for Morgan Keegan upgraded the company. Morgan Keegan said store remodels may attract more guests.