Gains for energy, phone and industrial companies offset losses elsewhere.
Industrial companies and banks led the gainers.
S&P 500 and the Dow ended slightly higher on Wednesday.
Banks, insurers and other financial companies led the gainers.
Consumers are increasingly moving away from packages foods for fresher options.
Five of the 11 major S&P sectors ended lower.
US stocks set records as banks and technology companies make further gains.
Boeing makes gains after Deutsche Bank raises target price.
Gains in consumer discretionary and energy stocks offset losses in technology.
U.S. stocks rose to record highs Tuesday.