S&P 500, Dow up on earnings lift, Nasdaq off session low