NEW YORK >> U.S. stocks pulled closer to their record on Tuesday as the wait continued for more updates on President Donald Trump’s tariffs and how much they’re affecting the economy.

The S&P 500 rose 0.6%, coming off a modest gain that added to its stellar May. It’s back within 2.8% of its all-time high set earlier this year after falling roughly 20% below two months ago.

The Dow Jones Industrial Average added 214 points, or 0.5%, and the Nasdaq composite climbed 0.8%.

Dollar General jumped 15.8% for one of the market’s bigger gains after reporting stronger profit and revenue for the start of the year than analysts expected. The discount retailer also raised its forecasts for profit and revenue over the full year, though it cautioned that “uncertainty exists for the remainder of the year” because of tariffs and how they might affect its customers.

Many other companies have cut or withdrawn their financial forecasts for the upcoming year because of the uncertainty caused by Trump’s on-again-off-again rollout of tariffs. The Organization for Economic Cooperation and Development said on Tuesday that it’s forecasting 1.6% growth for the U.S. economy this year, down from 2.8% last year.

But while Trump’s tariffs have certainly made U.S. households feel more pessimistic about where the economy and inflation are heading, reports have suggested only a moderate hit so far. Manufacturers have begun to feel the effects, but the overall job market has remained solid overall with layoffs remaining relatively low, and inflation has not taken off.

On the trade front, hopes are still high on Wall Street that Trump will reach trade deals with other countries that will ultimately lower tariffs, particularly with the world’s second-largest economy, China.

All the hope has brought the U.S. stock market almost all the way back to its record heights nearly as quickly as it plunged in April.

On Wall Street, tech stocks helped lead the way again as Nvidia rose 2.9%, and Broadcom climbed 3.3%. The chip companies have recovered their sharp losses from earlier this year borne amid worries their stock prices had shot too high.

All told, the S&P 500 rose 34.43 points to 5,970.37. The Dow Jones Industrial Average added 214.16 to 42,519.64, and the Nasdaq composite gained 156.34 to 19,398.96.

In the bond market, Treasury yields held relatively steady. The yield on the 10-year Treasury edged down to 4.45% from 4.46% late Monday, though it had been lower earlier in the morning before the stronger-than-expected report on U.S. jobs openings.