How the major stock indexes fared on Wednesday

A pair of encouraging economic reports helped nudge the stock market higher Wednesday. Measures of growth in the services industry and private sector hiring last month came in better than economists had expected.

The market's gains were held in check by a slump in energy stocks and Hewlett-Packard `s 13 percent plunge.

The Dow Jones industrial average rose 12.25 points, or 0.1 percent, to close at 13,494.61.

The S&P 500 index rose 5.24, or 0.4 percent, to 1,450.99.

The Nasdaq composite rose 15.19, or 0.5 percent, to 3,135.23.

For the week:

The Dow is up 57.48, or 0.4 percent.

The S&P 500 is up 10.32, or 0.7 percent.

The Nasdaq is up 19, or 0.6 percent.

For the year:

The Dow is up 1,277.05 points, or 10.5 percent.

The S&P 500 is up 193.39 points, or 15.4 percent.

The Nasdaq is up 530.08 points, or 20.3 percent.