Americans shopped less in July and more signed up for jobless benefits last week in a double dose of bad news for the U.S. economy just a day after the Federal Reserve said it saw a leveling out of the slump.

A Commerce Department report on Thursday showed total retail sales edged down 0.1 percent after increasing 0.8 percent in June. Excluding motor vehicles and parts, sales fell 0.6 percent in July after rising 0.5 percent the prior month.

Analysts had expected a boost to retail sales from the government's cash for clunkers program and predicted a 0.7 percent advance in overall July sales.

They said the program -- which gives consumers discounts to swap aging gas-guzzling cars for new, more fuel efficient models -- had pulled spending away from other sectors.

The data, combined with a report from the Labor Department showing first-time applications for state unemployment insurance benefits rose 4,000 to a seasonally adjusted 558,000 last week, were indications the economy faced a slow and difficult recovery from the worst recession in more than 60 years.

In another indication of weak consumer demand, Wal-Mart Stores Inc on Thursday said sales at stores open at least a year fell in the second quarter and its chief executive said the economy will remain challenging in the short term.

BUMPY ROAD TO RECOVERY

The road to recovery will be bumpy ... it is likely to be unusually slow to get traction before accelerating to a more robust growth path next year. The consumer is not going to lead the recovery, said Stephen Stanley, an economist at RBS in Greenwich, Connecticut.

The Federal Reserve, in leaving short-term interest rates near zero on Wednesday, said economic activity was leveling out. But it noted that sluggish income growth and continued job losses were constraining household spending, which was showing signs of stabilizing.

Wall Street stocks initially fell on the economic data, but regained ground as investors drew some comfort from Wal-Mart's earnings, which beat market expectations.

U.S. Treasury debt prices rose also as investors snapped up a record $15 billion auction of 30-year government bonds.

Interest rate futures showed a more remote chance of an increase in the Fed's benchmark overnight interest rate in January, dropping to 42 percent from 46 percent before Thursday's data.

The retail sales data cast a shadow over an anticipated rebound in consumer spending in the current quarter. Spending, which accounts for more than two-thirds of U.S. economic activity has been pressured by high unemployment.

The Reuters/University of Michigan Survey of Consumers due on Friday is expected to show sentiment perked up slightly in August, which analysts said might help spark a stronger spending environment for the rest of 2009.

The government's report last month on second-quarter gross domestic product showed consumer spending fell at a 1.2 percent annual rate after edging up 0.6 percent in the first quarter. Despite signs the recession is winding down, companies are slow to hire, though the pace of layoffs has dropped markedly.

GREEN SHOOTS IN GERMANY, FRANCE

Elsewhere there were signs of a pickup in global economic activity. Germany and France reported a surprise return to economic growth during the second quarter, ending their recessions earlier than many policymakers and economists expected.

In the United States, the decline in July retail sales was affected by a 2.1 percent drop in sales at gasoline stations. That stemmed from a retreat in gasoline prices during the month after a 6.3 percent surge in June.

Excluding gasoline, retail sales nudged up 0.1 percent. Sales were weak in nearly all areas of discretionary spending.

These data are a stark warning that households are not fit to drive a decent economic recovery, said Paul Dales, U.S. economist at Capital Economics in Toronto.

There was a ray of hope for the economy in the Labor Department report. The number of people collecting long-term unemployment benefits slipped by 141,000 to 6.20 million in the week ended August 1, the lowest level since mid-April.

Another report from the Commerce Department showed U.S. business inventories fell 1.1 percent in June after a 1.2 percent decline the prior month. Business sales rose 0.9 percent in June, advancing for the first time since July last year, after being flat in May.

Analysts said the data confirmed the record drop in inventories in the second quarter and could mean gross domestic product during that period will be revised to show a decline slightly bigger than the 1.0 percent annual rate reported last month.

(Additional reporting by Mark Felsenthal; Editing by Padraic Cassidy)