Stocks closed mostly lower Friday, giving up some of the gains from a day earlier when the major U.S. indexes closed at record highs.
Mining and chemicals companies fell the most, while energy companies rose along with the price of oil.
Investors were focused on the latest company earnings and new government data showing that retail sales turned sluggish in July and producer prices declined.
The Dow Jones industrial average fell 37.05 points, or 0.2 percent, to 18,576.47.
The Standard & Poor's 500 index slipped 1.74 points, or 0.1 percent, to 2,184.05.
The Nasdaq added 4.50 points, or 0.1 percent, to 5,232.89.
For the week:
The Dow is up 32.94 points, or 0.2 percent.
The S&P 500 is up 1.18 points, or 0.1 percent.
The Nasdaq is up 11.77 points, or 0.2 percent.
For the year:
The Dow is up 1,151.44 points, or 6.6 percent.
The S&P 500 is up 140.11 points, or 6.9 percent.
The Nasdaq is up 225.48 points, or 4.5 percent.
This story has been automatically published from the Associated Press wire which uses US spellings