The Dow and S&P 500 rose on Friday after France and Germany outlined an agreement to aid debt-burdened Greece, but analysts said a recent bearish trend may not be over.

The Dow Jones industrial average <.DJI> was up 42.84 points, or 0.36 percent, to end unofficially at 12,004.36. The Standard & Poor's 500 Index <.SPX> was up 3.86 points, or 0.30 percent, to finish unofficially at 1,271.50. But the Nasdaq Composite Index <.IXIC> was down 7.22 points, or 0.28 percent, to close unofficially at 2,616.48.

For the week, the Dow gained 0.4 percent and the S&P 500 edged up 0.04 percent -- ending a six-week losing streak. The Nasdaq, however, fell 1 percent for the week.

(Reporting by Edward Krudy; Editing by Jan Paschal)