By Anora Mahmudova, MarketWatch

NEW YORK (MarketWatch) -- U.S. stocks edged up after an initial dip into negative territory on Tuesday, as markets searched for direction in a session light on economic news. Urban Outfitters slumped after disappointing earnings, while Macy's and J.C. Penney rallied after an upgrade from analysts.

The S&P 500 (SPX) inched up 2 points, or 0.1%, to 1,879.52, trading above its previous closing record.

The Dow Jones Industrial Average (DJI) gained 20 points, or 0.1%, to 16,436.92.

The Nasdaq Composite (RIXF) rose 14 points, or 0.3%, to 4,348.25.

Follow our stock market coverage on live blog.

"Markets are confused right now, after getting conflicting set of data. On the one hand, job openings indicated demand for workers and improvement in labor market, on the other, wholesale inventories rose, as businesses overshot and could not sell goods sooner," said Kim Caughey Forrest, portfolio manager and senior equity analyst at Fort Pitt Capital.

Job openings rose in January in line with expectations. There were 3.97 million openings compared with 3.91 million in December. The so-called Jolts survey is one of the pieces of labor market data that Federal Reserve Chairwoman Janet Yellen has said she pays attention to.

U.S. wholesale inventories rose in January while wholesale sales fell, the Commerce Department reported Tuesday.

Small-business sentiment, released before the market open, slumped in February. According to the National Federation of Independent Business, its small-business index dropped by more than expected, on concerns over sales, the economy and employment driving the downturn.

Among individual stocks, retailers were in the spotlight. Shares of American Eagle Outfitters Inc. (AEO) tumbled 5.9% after fourth-quarter profit and outlook disappointed.

Shares of Urban Outfitters Inc. (URBN) fell 5.3% after the company reported results on Monday that revealed a drop in fourth-quarter same-store sales late Monday.

Shares of Dick's Sporting Goods Inc. (DKS) rose 1% after the company posted results that largely met forecasts.

Shares of Macy's (M) and J.C. Penney rose after upgrades from analysts.

J.C. Penney Co. (JCP) shares jumped 8.7% after the retailer was upgraded to buy from neutral by Citigroup. Analyst Oliver Chen expects that the company's "going back to basics" strategy will spur positive comparable sales in line with the retailer's outlook.

Macy's rose 2.5% after analysts at Wells Fargo raised the stock to outperform from market-perform.

Shares of La Jolla Pharma Co. (LJPCD) soared 73%, tracking a rally late Monday after the microcap biotech said its study for a chronic kidney disease treatment showed a statistically significant improvement.

Fuel Tech Inc. (FTEK) shares sank 19% after the air-pollution-control technology company's results fell short of Wall Street expectations late Monday.

In other markets, Asia stocks managed flat-to-positive closes after Monday's mauling, with the China Shanghai Composite Index closing up 0.1%. European stocks wavered as banks fell. Copper prices (HGK4), hit particularly hard by that downbeat Chinese export data on Monday, managed a gain of 1 cent.

Oil prices managed to perk up after Monday's rout, while gold prices were also higher. Benchmark Treasury yields also ticked up.

More must-reads from MarketWatch:

Celebrating bulls lose sight of bearish picture

Five reasons why stocks will fall

Are you ready for deflation?

Subscribe to WSJ: http://online.wsj.com?mod=djnwires

Urban Outfitters (NASDAQ:URBN)
Historical Stock Chart
From Mar 2024 to Apr 2024 Click Here for more Urban Outfitters Charts.
Urban Outfitters (NASDAQ:URBN)
Historical Stock Chart
From Apr 2023 to Apr 2024 Click Here for more Urban Outfitters Charts.