Peer Kohl's Corp KSS.N rose after raising its forecast. By David French NEW YORK, Nov 18 (Reuters) - Both the S&P 500 and the Nasdaq eked out record closing highs after a topsy-turvy Thursday, as investors focused on upbeat retail and technology earnings which outshone hawkish inflation comments from a Federal Reserve policymaker. The S&P consumer discretionary sector .SPLRCD led gains among its peers, as positive retail earnings from Macy's and Kohl's joined upbeat reports from Walmart Inc WMT.N and Target Corp TGT.N earlier this week.