(Reuters) - Gains in technology stocks helped the S&P 500 eke out another record on the last trading day of the month, while the Dow was dragged down by losses in industrial stocks.