Stocks rose on Thursday, but gains were capped as disappointing holiday sales from Macy's and a revenue guidance cut from American Airlines pressured retail and airline shares. Fear that the U.S. government shutdown might continue for a long time also weighed on stocks.

The climbed 0.4 percent to 2,596.64 — notching its first five-day winning streak since September — as the real estate and industrials sectors outperformed. The Dow Jones Industrial Average also posted a five-day winning streak, rising 122.80 points to 24,001.92 as Boeing outperformed. The Nasdaq Composite gained 0.4 percent to 6,986.07.