A mostly listless day of trading left U.S. stock indexes little changed Monday, hovering just below the record highs they set late last week.

Drug company and consumer-focused stocks weighed on the market, while energy companies surged, getting a lift from a pickup in crude oil prices.

The slight pullback came as investors took advantage of the milestones reached Friday by the Standard & Poor’s 500 index and Nasdaq composite to pocket some gains. Strong U.S. jobs data left traders feeling more confident in the economy heading into this week.

The major stock indexes appeared headed for another day of gains early on, as markets in Asia and Europe shrugged off new data showing China’s exports and imports declined again last month. A report indicating industrial production in Germany grew at a better-than-expected rate in June helped lift markets overseas.

Two drugmakers weighed on the market early on.

Shares in Bristol-Myers Squibb were hammered after plunging on Friday following news that the drugmaker’s cancer treatment Opdivo failed in a study aimed at extending its usage for lung cancer patients. The stock lost $2.98, or 4.7 percent, to $60.30.

Meanwhile, Allergan slid 2.2 percent after the Botox-maker’s second-quarter revenue fell short of Wall Street’s forecasts. The stock lost $5.54 to $248.31.

A pickup in oil prices drove several oil and natural gas companies higher.

Benchmark U.S. crude rose $1.22, or 2.9 percent, to close at $43.02 per barrel in New York. Brent crude, used to price international oils, gained $1.12, or 2.5 percent, to close at $45.39 per barrel in London.

Investors also had their eye on some corporate deal news.

Wal-Mart Stores slipped 0.6 percent after the retail giant agreed to buy fast-growing online retail newcomer Jet.com for $3 billion in cash and another $300 million in stock. The deal underscores how serious Wal-Mart is about challenging online leader Amazon. Shares in Wal-Mart shed 42 cents to $73.34.

In metals trading, the price of gold fell $3.10, or 0.2 percent, to $1,341.30 an ounce. Silver dipped 1 cent, or 0.1 percent, to $19.81 an ounce. Copper added a penny, or 0.5 percent, to $2.17 a pound.

Bond prices were little changed. The yield on the 10-year Treasury note held at 1.59 percent. In currency markets, the dollar rose to 102.47 yen from Friday’s 101.75 yen. The euro edged down to $1.1083 from $1.1091.