Stocks staged modest gains on Friday, lifted by supportive comments on technology bellwethers before key earnings reports due next week.
International Business Machines Corp
Barclays also upgraded the information technology hardware sector to positive from neutral, and late Thursday, Deutsche Bank predicted that semiconductor companies' quarterly results would beat expectations.
That helped lift chip makers' stocks. The Philadelphia Semiconductor index <.SOXX> gained 2.1 percent. Intel, which also reports next week, rose 1.5 percent.
Smartphone companies' shares jumped after Robert W. Baird upgraded BlackBerry maker Research in Motion
The tech group is very well positioned as a sector, and the smartphone market is an area with explosive growth on a global basis, said Greg Woodard, portfolio strategist at Manning & Napier Advisors in Fairport, New York.
There's a lot of competition in the group, but that competition could help the sector as a whole, with companies like Microsoft
RIM's U.S.-listed shares climbed 1.8 percent to $69.92 on Nasdaq.
UBS added Apple Inc
The Dow Jones industrial average <.DJI> rose 35.37 points, or 0.36 percent, to 9,822.24. The Standard & Poor's 500 Index <.SPX> added 2.06 points, or 0.19 percent, to 1,067.54. The Nasdaq Composite Index <.IXIC> gained 9.14 points, or 0.43 percent, to 2,133.07.
Two large merger deals, which were announced on Friday, attracted investors' attention.
Shares of Citi fell 0.9 percent to $4.61, while Occidental slipped 0.6 percent to $79.64, both on the NYSE.
According to the Commerce Department, the U.S. trade gap unexpectedly narrowed in August, as trade in services pushed exports slightly higher and imports fell by a fractionally larger amount.
The S&P 500, which has climbed nearly 60 percent from a 12-year closing low in early March, was on track at midday to reverse a two-week losing streak.
(Editing by Jan Paschal)