The major indexes swung between slight gains and losses in early trading, but were clearly in the black after noon and didn't look back. The S&P 500 ended less than 0.5% below its record close set last month at 1,848.38.
US factory activity accelerated at its fastest pace in nearly four years in February, according to Markit's preliminary US Manufacturing Purchasing Managers Index, a bullish economic indicator following a string of weaker-than-expected reports.
New claims for unemployment insurance fell in the latest week, boding well for the job market, but the Philadelphia Fed's gauge of manufacturing activity unexpectedly contracted in February.
The stock market has selectively shrugged off tepid data, pinning recent weakness on the impact of extremely cold weather and massive snow rather than worsening fundamentals.
"The US (Markit) PMI number was probably not as good as it seems. There could be some noise there, but it certainly is a good number," said Paul Zemsky, head of asset allocation at ING Investment Management in New York.
Also Read
"Overall, I think the data is a little equity positive. I don't think this is sufficient to take us past 1,850 (on the S&P 500). We need a reasonably good jobs number for that. I think we still coil here for a few sessions, but we'll break to new highs because the economy is going to show the slowdown was weather-related."
The Dow Jones industrial average rose 92.67 points or 0.58%, to end at 16,133.23. The S&P 500 gained 11.03 points or 0.60%, to finish at 1,839.78. The Nasdaq Composite added 29.591 points or 0.7%, to close at 4,267.545.
Social networking giant Facebook
Tesla
The market disregarded rising political tensions and violence from Caracas to Kiev, though concerns may increase next week as earnings wind down and the data calendar thins further.
Emerging market growth was also in view after China's flash Markit/HSBC Purchasing Managers' Index fell to a seven-month low in February.
"The market's strength is somewhat surprising, given how weak overseas markets have been," said Nicholas Colas, chief market strategist at the ConvergEx Group in New York.
"It is good to see investors buying on dips, but I've also been hearing a lot more bearish chatter."
DirecTV
On the downside, Wal-Mart Stores Inc
About 6.4 billion shares traded on US exchanges, according to the latest available data from BATS Global Markets, below the 7.05 billion average so far in February.
Advancing issues outnumbered declining ones on the New York Stock Exchange by a ratio of slightly less than 2 to 1. On the Nasdaq, about 12 stocks rose for every five that fell.