On Tue, 21 Feb 2012 10:16:25 -0600, McKown, John wrote:

>Do you ever want to "retire" some step(s) from a job? But you don't really 
>want to remove the step(s) "just in case"? I don't remember this being 
>mentioned before, so I thought I would. It will work for any step, other than 
>the first one in the job. Find a step, any step, before the step(s) you want 
>to bypass. Wrap the step(s) you want to bypass with:
>
>// IF (stepname.RUN=TRUE AND stepname.RUN=FALSE) THEN
>.... steps to be bypassed
>// ENDIF
>
>Replace "stepname" with the name of the step you selected which exists before 
>the bypassed step(s). This works if the previous step ran or didn't run, 
>regardless of the step's return code if it did run. Sorry if this was obvious. 
>Maybe my brain has retired already.
> 
For a single step, I use COND=(0,LE) on the EXEC statement.  There
must be a prior step; I don't know whether it must have run.  When useful,
I start the job with an IEFBR14 step.  This usually runs.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to