Stocks struggled for direction for most of the day Friday amid upbeat data on retail sales and consumer sentiment. But the main indexes ultimately ended mildly higher. The Nasdaq edged up 0.2%, thanks to strength in software and solar issues. But biotechs were weak. The S&P 500 ended fractionally higher. But the Dow Jones industrial average slipped 0.1%. Volume fell across the board in the stock market today.