Stocks closed little changed on Friday after mixed consumer and retail data, but major indexes edged higher for a second straight week.

The Dow Jones industrial average <.DJI> gained 12.85 points, or 0.12 percent, to end unofficially at 10,624.69. The Standard & Poor's 500 Index <.SPX> dipped just 0.25 point, or 0.02 percent, to finish unofficially at 1,149.99. The Nasdaq Composite Index <.IXIC> inched down just 0.80 point, or 0.03 percent, to close unofficially at 2,367.66.

For the week, the Dow gained 0.6 percent, while the S&P 500 rose 1 percent and the Nasdaq climbed 1.8 percent.

(Reporting by Edward Krudy; Editing by Jan Paschal)