(Reuters) - U.S. stocks gained on Friday, with the Nasdaq and the benchmark S&P 500 hitting records, helped by higher commodity prices and with retail stocks getting a boost on signs of a strong start to the holiday shopping season.