NEW YORK (CNNMoney) -- U.S. stocks rose modestly Friday, with trading volume light as traders positioned themselves ahead of the the long holiday weekend.
The Dow Jones industrial average () rose 39 points, or 0.3%, to 12,442; the S&P 500 ( ) added 5.4 points, or 0.4%, to 1,331; and the Nasdaq Composite ( ) climbed 14 points, or 0.5%, to 2,797.
Despite Friday's gains, all three indexes ended the week lower. The Dow fell 0.6%, the S&P 500 fell 0.2%, and the Nasdaq fell 0.2%. Both the Dow and S&P have fallen for four consecutive weeks.
Stocks received some support on Friday from the University of Michigan's May consumer sentiment survey, which rose more than expected. But a disappointing 11.6% drop in April pending home sales "took some of the wind out of the positive consumer sentiment data," said Marc Pado, U.S. market strategist with Cantor Fitzgerald.
Overall, U.S. stocks have struggled this month, as optimism over upbeat corporate earnings has been tempered by signs the economy could be entering a slow period.
All three major indexes are down about 3% for the month, but analysts say the market is still headed higher this year.
Trading was subdued Friday, with volumes well below typical daily averages, as investors were reluctant to place big bets ahead of a long weekend. The stock market will be closed Monday for Memorial Day.
Stocks edged higher Thursday, as momentum in the technology sector offset disappointing reports on economic growth and the labor market.
Economy: Personal income and spending both rose 0.4% in April. Income was in line with Briefing.com estimates, while economists had forecast a 0.5% increase for spending.
Companies: Marvell Technologies ( ) shares jumped 11% after the company issued an upbeat second-quarter profit outlook.
Toyota (), Nissan ( ) and Honda ( ) all reported sharp declines in sales and production during April, as the fallout from the March 11 earthquake and tsunami continue to take a toll on Japan's auto industry. Shares of the three major Japanese automakers edged lower.
Oil for July delivery gained 36 cents to $100.59 a barrel.
Gold futures for June delivery rose $13.50 to $1,536.30 an ounce.
Bonds: The price on the benchmark 10-year U.S. Treasury eased, pushing the yield up to 3.07% from 3.06% late Thursday.
World markets: Fitch Ratings lowered its outlook for Japan's economy to "negative" from "stable," saying the government needs to do more to reduce its long-term debt load. But the agency said Japan's credit rating remains supported by a high savings rate among the nation's population.
Asian markets ended mixed. The Shanghai Composite slid nearly 1%, and Japan's Nikkei dipped 0.4%, while the Hang Seng in Hong Kong rose 0.9%.
|What we want Apple to unveil at WWDC|
|Millennials squeezed out of buying a home|
|7 traits the rich have in common|
|Big Data knows you're sick, tired and depressed|
|Your car is a giant computer - and it can be hacked|
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||4.01%||4.01%|
|15 yr fixed||3.18%||3.18%|
|30 yr refi||4.02%||4.01%|
|15 yr refi||3.19%||3.19%|
Today's featured rates: