NEW YORK, April 5 (Reuters) - U.S. stocks rose on Friday, boosted by better-than-expected job growth in March, which eased concerns of an economic slowdown that have periodically roiled financial markets over the past year.

The gains put the benchmark S&P 500 on track to close higher for seven trading days in a row, which would be its longest winning streak since October 2017.

The Labor Department said nonfarm payrolls rose by 196,000 jobs in March, topping the 180,000 new jobs forecast by economists polled by Reuters. Data for February was revised upward to a gain of 33,000 jobs instead of the previously reported 20,000, the smallest gain since September 2017.

"The jobs report bounced back with a very nice gain above expectations," said Robert Phipps, director at Per Stirling Capital Management in Austin, Texas. "That's important because it lessened the fear of an impending recession."

However, wage increases slowed in March, leaving the data broadly supportive of the Federal Reserve's decision to suspend its three-year campaign to tighten monetary policy.

A dovish Fed along with hopes for a U.S.-China trade agreement have lifted the S&P 500 to its highest level since Oct. 9, putting the index only 1.4% below its record closing high.

The Dow Jones Industrial Average rose 25.29 points, or 0.1%, to 26,409.92, the S&P 500 gained 10.35 points, or 0.36%, to 2,889.74, and the Nasdaq Composite added 38.55 points, or 0.49%, to 7,930.33.

Stocks across the world also got a lift from President Donald Trump's comments on Thursday that Beijing and Washington were close to a trade deal that could be announced within four weeks. Trump later said he would not predict that a deal will be reached.

Next week, corporate earnings will come into greater focus with major U.S. banks scheduled to report quarterly results. Analysts expect earnings for S&P 500 companies to fall year-over-year for the first time since 2016.

On Friday, energy stocks jumped 1.6%, the biggest percentage gain among S&P 500 sectors, as oil prices firmed after the release of the U.S. jobs data and on expectations that conflict in Libya could tighten supply.

Boeing Co shares dipped 0.9% after UBS cut its price target and said the preliminary report following last month's fatal Ethiopian Airlines crash pointed to MCAS anti-stall software as a contributor to the crash. The software has also been implicated in the fatal crash in October of a Lion Air 737 MAX jet in Indonesia.

Advancing issues outnumbered declining ones on the NYSE by a 2.52-to-1 ratio; on Nasdaq, a 2.15-to-1 ratio favored advancers.

The S&P 500 posted 30 new 52-week highs and no new lows; the Nasdaq Composite recorded 67 new highs and 20 new lows. (Reporting by April Joyner; Additional reporting by Sruthi Shankar and Shreyashi Sanyal in Bengaluru; Editing by Leslie Adler)