Sorry to be a little slow with this but what I was thinking was that the script would change any class C gateway to the desired gateway. We have way too many subnets running here when I last checked it 8000 subents world wide. So instead of having a file with 8000 entries and translating them to the New gateway the script I was thinking of would do any subnet that we want to change even gateways which SMS might have missed identifiying. I will try to do what you guys suggested and see how it works but is there somthing wrong with my desired script too complicated or just doesn't make any sense ? Thanks for all your help guys.