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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.