NEW YORK (AP) The stock market ended an up-and-down day with solid gains Wednesday, led by energy companies as the price of crude oil climbed.
Transocean, an oil rig operator, rose 4 percent Wednesday.
Health care stocks fell after President-elect Donald Trump said the government needs to overhaul how it buys drugs from pharmaceutical companies.
Many of the biggest losses in the Standard & Poor's 500 index went to drug makers.
Endo International plunged 8.5 percent.
Despite those drops, the Nasdaq composite posted another gain and another all-time high. The index has risen every day this year.
The S&P 500 climbed 6 points, or 0.3 percent, to 2,275.
The Dow Jones industrial average rose 98 points, or 0.5 percent, to 19,954.
The Nasdaq composite increased 11 points, or 0.2 percent, to 5,563.