I needed to restart an abended Job. The looks like this
Code: Select all
//STEP1...
// IF (STEP1.RC = 0) THEN
//STEP2 ...
//STEP3 ...
//STEP4..
// ENDIF
Code: Select all
STEP WAS NOT RUN BECAUSE OF CONDITIONAL EXPRESSION

Code: Select all
//STEP1...
// IF (STEP1.RC = 0) THEN
//STEP2 ...
//STEP3 ...
//STEP4..
// ENDIF
Code: Select all
STEP WAS NOT RUN BECAUSE OF CONDITIONAL EXPRESSION
20.23.4 Cautions when Coding the RESTART Parameter
Before resubmitting a job:
Check all backward references to steps before the restart step. Eliminate all backward references in EXEC statement PGM parameters and DD statement VOLUME=REF parameters.
Review all EXEC statement COND parameters. If any of the COND parameters reference a step before the restart step, be aware that the system ignores the return code tests for those steps. See "Considerations when Using the COND Parameter" in topic 16.5.6 for more information.
Note that the stepname and procstepname specified to identify the restart step must be unique within the job. Otherwise, the system will not be able to determine the correct restart step. Results will be unpredictable.
Review all IF/THEN/ELSE/ENDIF structures. If a relational expression references a step that is bypassed by the RESTART keyword, the system evaluates that part of the expression as false
This is what I did not get that there is a manual part involved, like you said - but you must not expect them to know that in the previous run STEP0003 had CC/RC=4. If they need to know that in the RESTART, it is up to you to inform them manually.William Collins wrote:I'm not sure what you mean by that, but No. It means that if a COND or IF refers to a STEP which is bypassed by the RESTART, then the part of the condition relating to that bypassed step is considered to be true. You don't have to worry about COND or IF, but you must not expect them to know that in the previous run STEP0003 had CC/RC=4. If they need to know that in the RESTART, it is up to you to inform them manually.
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute