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.

“It’s a little bit of profit-taking,” said JJ Kinahan, chief strategist at TD Ameritrade. “We’re coming off a good employment number and we know the consumer’s been strong.”

The Dow Jones industrial average slipped 14.24 points, or 0.1 percent, to 18,529.29. The S&P 500 index dipped 1.98 points, or 0.1 percent, to 2,180.89. The Nasdaq shed 7.98 points, or 0.2 percent, to 5,213.14.

The stock market hit record highs on Friday after the Labor Department said U.S. employers added 255,000 jobs in July — far more than investors expected.

advertisement | advertise on newsday

Benchmark U.S. crude rose $1.22, or 2.9 percent, to close at $43.02 per barrel in New York.