Thanks the code is somewhat more complex than i intimated. It's not simply 1 program per step. A step might set up certain environmental variables that can differ for each program? The previous step may involve sending Emails to different people depending on the results etc As this is 3rd party software the production scripts are often several thousand lines and up to 50 programs can be run - that's a lot of editing every time the script fails at step 25! I had considered an array of subroutines or writing specific packages but every thought that I had came back with the same problem. Unless you use goto any time this script fails it will need to be edited before being re-run.Call me a pedant but that to me is not an AUTOMATED re-run system. Thanks for the suggestion - at least you tried to come up with an answer unlike some!
In reply to Re^2: Go to?
by Ronnie
in thread Go to?
by Ronnie