About 100 workers at an IT support company in East Kilbride have had the threat of redundancy lifted.
Accenture, which provides services for Scottish Power, had outlined plans to review operations at its sites in East Kilbride and Queensferry, Flintshire.
But the firm have now gained project work until at least the end of 2011, which also secures 80 staff in Wales.
Unison Scotland said the move followed talks with unions, Accenture, Scottish Power and parent firm Iberdrola.
Gerry Crawley, regional organiser, said: "This is great news for our members who have gone through a difficult time and suffered a lengthy period of uncertainty about their jobs.
"This decision is testament to the hard work of all those involved, together with the support of local politicians, in preventing job losses at a time of great economic uncertainty."
In a statement, Accenture said: "We consider this to be a very positive outcome.
"It is a position that saves jobs for the foreseeable future and will result in a stable demand position for additional project work to at least the end of 2011 and hopefully beyond."