Oil and gas companies led the stock market up Friday, helping the Standard & Poor's 500 index notch its second-best week this year.
The Dow Jones industrial average rose 26.65 points, or 0.1 percent, to 17,804.80.
The Standard & Poor's 500 index gained 9.42 points, or 0.5 percent, to 2,070.65.
The Nasdaq composite gained 16.98 points, or 0.4 percent, to 4,765.38.
For the week:
The Dow is up 523.97 points, or 3 percent.
The S&P 500 index is up 68.32 points, or 3.4 percent.
The Nasdaq is up 111.78 points, or 2.4 percent.
For the year:
The Dow is up 1,228.14 points, or 7.4 percent.
The S&P 500 index is up 222.29 points, or 12 percent.
The Nasdaq is up 588.79 points, or 14.1 percent.