Stocks reversed course on Friday with the major indexes turning positive after a barometer of U.S. Midwest business jumped in July, while consumer sentiment data for the month came in better than expected.

The Dow Jones industrial average <.DJI> gained 21.00 points, or 0.20 percent, to 10,488.16. The Standard & Poor's 500 Index <.SPX> added 1.92 points, or 0.17 percent, to 1,103.45. The Nasdaq Composite Index <.IXIC> put on 4.61 points, or 0.20 percent, to 2,256.30.

(Reporting by Leah Schnurr)