The Dow Jones industrial average rose for the first day in six after the government reported a fourth straight month of solid U.S. job gains, the latest encouraging sign for the economy. The Standard & Poor's 500 index also gained.
Both indexes fell just short just short of erasing their losses for the week.
The Dow Jones industrial average rose 198.69 points, or 1.3 percent, to 16,020.20.
The Standard & Poor's 500 index climbed 20.06 points, or 1.1 percent, to 1,805.09.
The Nasdaq composite gained 29.36 points, or 0.7 percent, to 4,062.52.
For the week:
The Dow is down 66.21 points, or 0.4 percent.
The S&P 500 is down 0.72 points, or 0.04 percent.
The Nasdaq is up 2.63 points, or 0.06 percent.
For the year:
The Dow is up 2,916.06 points, or 22.3 percent.
The S&P 500 is up 378.90 points, or 26.6 percent.
The Nasdaq is up 1,043.01 points, or 34.5 percent.