The major averages ended the week with gains as the S&P 500 eked out a new high Friday and stocks pared their earlier losses. The benchmark index climbed 0.2% and the Dow industrials 0.1%. The Nasdaq finished with a 0.1% loss. Volume was higher on the NYSE and lower on the Nasdaq in the stock market today, according to preliminary data.