* TSX up slightly after three days of steep losses
* Resource and consumer shares rise late in day
* Index ends shortened week down nearly 7 percent (Updates closing numbers, adds details, quotes)
TORONTO, Sept 5 (Reuters) - The Toronto Stock Exchange's main index just managed to end on the plus side on Friday, following a sharp three-day losing streak, as gains by resource and consumer issues offset worries over the outlook for the global economy.
Early on, the index had continued its week-long dive, giving up more than 2 percent after a U.S. labor market report fueled worries over the health of the economy of Canada's largest trading partner, with data showing the U.S. unemployment rate soared last month.
But the materials and consumer sectors bounced back in the late afternoon, as bargain-hunters emerged, while a drop in oil prices eased worries over consumer spending.
Fertilizer firm Potash Corp of Saskatchewan (POT.TO) was the biggest gainer by weight, rising 7.5 percent to C$172.35, while among consumer stocks, grocer Metro Inc MRUa.TO was up 7.5 percent at C$28.55.
"After several days of declines, particularly in the materials and energy sector, what we are seeing is people deciding that that was a bit overdone and reassessing how much the stocks had sold off," said Kate Warne, Canadian market strategist at Edward Jones in St. Louis, Missouri.
"I think, however, the trend's likely to continue to be lower just because there continue to be worries about how much global growth is falling. But obviously, for the second half of today, people have decided that this week's selloff was a bit overdone."
The S&P/TSX composite index .GSPTSE closed up 2.28 points, or 0.02 percent, at 12,816.42 with four of its 10 main sectors on the upside. The benchmark has shed nearly 7 percent over the holiday-shortened four-day week in a broad retreat prompted by worries over slowing global growth and the impact that will have on the demand for commodities.
The heavyweight energy and materials sectors ended up 0.4 percent and 1.8 percent, respectively. Among gainers, Canadian Natural Resources (CNQ.TO) rose 3.1 percent to C$83.33, and Teck Cominco TCKb.TO climbed 3.2 percent to C$39.79.
The sectors had earlier been taken lower by weak oil and industrial metal prices before the downtrodden stocks attracted some investors back into the market.
But the $1.66 drop in oil to $106.23 a barrel buoyed consumer stocks that have been hurt by fears of decreasing spending. The consumer staples group added 1.1 percent. ($1=$1.06 Canadian) (Reporting by Leah Schnurr and Natasha Elkington; editing by Rob Wilson)