* Energy lifts S&P and Dow; tech weighs on Nasdaq
* Oil prices jump after OPEC agrees to modest hike in supply
* Red Hat slumps on disappointing revenue forecast
* Dow up 0.51 pct, S&P gains 0.29 pct, Nasdaq down 0.28 pct (Adds comment, adds details; Updates prices)
By Medha Singh
June 22 (Reuters) - Wall Street rose on Friday boosted by higher oil prices after the OPEC agreed to a modest increase in output, but a drop in technology stocks capped gains.
U.S. President Donald Trump threatened to impose a 20 percent tariff on all European Union car imports, a month after the administration launched a probe into whether auto imports pose a national security threat.
Harley-Davidson fell 1.7 percent. The U.S. bike maker has in the past warned of a "significant impact" on its sales if the European Union decides to increase duties on motorcycles in retaliation.
This adds to worries about the China-U.S. trade spat which escalated earlier this week after Trump threatened to impose tariffs on $200 billion of Chinese imports and Beijing vowed to retaliate.
"Caution is very important among investors when it comes to trade ... this choppy, erratic and volatile action on a day-to-day and intraday basis is going to be the norm till things settle down," said Andre Bakhos, managing director at New Vines Capital LLC in Bernardsville, New Jersey.
The benchmark Brent crude surged 2.2 percent to $74.67 a barrel, following three days of declines, after OPEC agreed on Friday to a modest increase in output to compensate for losses in production at a time of rising global demand.
Exxon Mobil rose 2.5 percent and Chevron gained 2.3 percent lending the biggest boost to the S&P 500 and the Dow. The S&P energy index was up 2.7 percent.
A recent rally in oil prices due to an OPEC decision to restrict supply in an effort to drain global inventories, has helped S&P energy be the best performing S&P sector in the last three months.
At 11:26 a.m. EDT the Dow Jones Industrial Average was up 125.81 points, or 0.51 percent, at 24,587.51, the S&P 500 was up 8.08 points, or 0.29 percent, at 2,757.84 and the Nasdaq Composite was down 21.30 points, or 0.28 percent, at 7,691.66.
The gains were broad-based with 10 of the 11 main S&P sectors trading in the positive. The technology sector was the only one in the red, down 0.6 percent.
Leading the decliners among tech was open source software provider Red Hat Inc, which slumped 11.2 percent after its current-quarter and full-year revenue missed analysts' estimates due to a strengthening dollar.
Microsoft's 1.1 percent decline and Facebook's 0.6 percent fall also weighed.
The trade spat has pushed the Dow Jones index in the red for the past eight sessions and put it on track for its worst weekly performance in 13 weeks.
If the Dow fails to hold on to its gains, it would be the longest losing streak for the index in over 40 years. The 30-stock average has closed lower in the past eight sessions.
Friday also marks what would likely be the biggest trading day of the year as a Russell rebalance takes effect at markets close.
Advancing issues outnumbered decliners for a 2.38-to-1 ratio on the NYSE and for a 1.18-to-1 ratio on the Nasdaq.
The S&P index recorded 16 new 52-week highs and two new lows, while the Nasdaq recorded 67 new highs and 25 new lows. (Reporting by Medha Singh in Bengaluru; Editing by Shounak Dasgupta)