Previous Topic

Next Topic

Book Contents

Book Index

IF/THEN/ELSE JCL blocks

Control-M/Restart can simulate and evaluate IF/THEN/ELSE JCL blocks, and restart the job from within the IF/THEN/ELSE JCL block when necessary, only if the IFADJ parameter in the CTRPARM member in the IOA PARM library is set to YES.

In this case, IF/THEN/ELSE JCL statements (or the COND parameter) operate as if backward-referenced steps were included in the restart run and are able to reference the correct condition code (meaning, the condition code of the backward-referenced step) from the previous unsuccessful run of the job. In this manner, the fact that the backward-referenced step is not included in the restart job is totally invisible to the COND and IF/THEN/ELSE parameters.

Note: If the IFADJ parameter is set to NO, Control-M/Restart does not handle IF/THEN/ELSE JCL blocks. In this case, do not use Control-M/Restart to restart jobs containing IF/THEN/ELSE blocks because the results are unpredictable.

Parent Topic

Operation Considerations