Stocks gained Friday, with the Dow industrials briefly topping 11,000 and the broader market ending higher for the seventh of eight weeks, as economic optimism outweighed concerns about Greece's debt. Stocks moved higher throughout the session, led by energy shares, but gains were limited by financial stocks. In economic news, U.S. wholesale inventories rose 0.6 percent in February after rising 0.1 percent the previous month. Sales at the wholesale level also rose. The U.S. dollar fell versus the euro and the yen. Light sweet crude oil for May delivery fell 47 cents to $84.92 a barrel on the New York Mercantile Exchange. Gold for June delivery rose $9 to $1,161.90 an ounce. The Dow Jones industrial average rose 29.55, or 0.3 percent, to 10,927.07. The index's gain was driven by Exxon Mobil, Chevron, Coca-Cola, and Walt Disney. The broader Standard & Poor's 500 index rose 7.93, or 0.7 percent, to 1,194.37. The technology-heavy Nasdaq composite index rose 17.24, or 0.7 percent, to 2,454.05, powered by gains from Microsoft, Yahoo, and Intel.