Stocks turned positive on Friday and the S&P 500 briefly hit a session high as the U.S. dollar slipped after a report that a German bank may buy Greek debt as an emergency measure.

The Dow Jones industrial average <.DJI> gained 21.01 points, or 0.20 percent, to 10,342.04. The Standard & Poor's 500 Index <.SPX> rose 2.69 points, or 0.24 percent, to 1,105.63. The Nasdaq Composite Index <.IXIC> added 4.54 points, or 0.20 percent, to 2,238.76.

Bloomberg reported that Germany's KFW Bank may buy Greek debt. The U.S. dollar index was down 0.5 percent.

(Editing by Jeffrey Benkoe)