Stocks were generally mixed after the opening bell as the S&P was nearing record levels.