Strong earnings from big U.S. companies pushed the Dow Jones industrial average to a rare triple-digit gain Friday, but the S&P 500 index still posted its first weekly loss of the year.
Hewlett-Packard had the biggest gain in the Dow and the Standard & Poor's 500 index. It posted fiscal first-quarter earnings late Thursday that beat all forecasts, a relief after months of bad news for the computer maker. H-P rose $2.10, or 12.3 percent, to $19.20.
Cabot Oil & Gas Corp. was the S&P 500's second-best performer, jumping a day after reporting earnings that beat analysts' expectations. It rose $5.95, or 11.1 percent, to $59.81.
American International Group Inc. rose after its fourth-quarter operating results exceeded analysts' forecasts. The company's net loss was $4 billion, mainly because of claims related to Superstorm Sandy, in the first full quarter after it finished repaying its $182 billion government bailout. AIG rose $1.17, or 3.1 percent, to $38.45.
The Dow closed up 119.95 points, or 0.9 percent, at 14,000.57 - its third-biggest gain this year. The S&P 500 rose 13.18 points, also 0.9 percent, to 1,515.60. The Nasdaq composite index rose 30.33, or 1 percent, to 3,161.82.
The S&P 500 and Nasdaq closed slightly lower for the week, while the Dow edged higher.