NEW YORK CITY, RAW – The S&P 500 and Nasdaq squeaked to record highs as Wall Street’s main indexes all ended in positive territory, with higher commodity prices helping energy names recover ground and the latest jobs data leaving investors unfazed from existing positions.

The energy sector rose, reversing most of the losses suffered during the first three days of the week. Thursday’s performance was fuelled by US crude prices jumping 2 per cent on a sharp decline in US inventories and a weaker dollar.

Cabot Oil & Gas Corp and Occidental Petroleum Corp were among the largest risers, with oil majors Exxon Mobil and Chevron Corp also posting solid gains.

The technology index slipped into negative territory, as some of the industry’s largest companies saw their recent upward momentum stall.

Amazon.com Inc, Microsoft Corp, Facebook Inc and Google-owner Alphabet Inc were all under water. A notable exception was Netflix Inc, which hit an all-time high intraday.

US stocks have regularly hit record highs over the past few weeks as a solid corporate earnings season and hopes of continued central bank support underpinned confidence as data showed the country’s post-pandemic economic growth was beginning to slow.

Data on Thursday showed the number of Americans filing new claims for jobless benefits fell last week, although the focus will be on the Labor Department’s monthly jobs report on Friday to set the stage for the Fed’s policy meeting later this month.

The report is likely to show job growth slowed to 750,000 in August from 943,000 the previous month.

“You have to see very wide beats or misses in this data to really change people’s minds,” said Greg Boutle, US head of equity and derivative strategy at BNP Paribas.

“Investors are either in this renormalisation camp that thinks inflation will not happen, or they believe there will be some persistence to inflation. Really, it will be a collection of beats or misses that will move the needle for investors and the Fed, rather than a single data point.”

The S&P 500 gained 12.92 points, or 0.29%, to end at 4,537.01 points, while the Dow Jones Industrial Average gained 129.38 points, or 0.37%, to 35,441.91. The Nasdaq Composite rose 21.15 points, or 0.14%, to 15,330.53.

Despite deadly flash floods in New York City, trading on Wall Street was operating normally.

Wells Fargo rose after three straight sessions of losses. The lender had been weighed by a report it could face further regulatory sanctions over the pace of compensating victims of a years-long sales practice scandal.

Contracting services company Quanta Services Inc jumped to a record high after saying it would buy privately held Blattner Holding Company in a deal valued at about $US2.7 billion ($A3.6 billion).