Posted: Sat Jun 19, 2004 1:01 am Post subject: COND parameter
I've the following setup -
//STEP010 EXEC PGM=XXXX
//STEP020 EXEC PGM=SORT
Now, I want to execute the SORT step only if the return code from previous step(execution of program XXXX) is either 00 or 16. For all other return codes, the sort step should be skipped.
Any help regarding how to code COND parameter for this to achieve will be highly appreciated.
Also,is there any way to restart a job from a step which is present in Catalogued procedure called by the JCL?
NutCracker,
I think the 2nd solution won't work.
//STEP010 EXEC PGM=XXX
:
:
//STEP020 EXEC PGM=SORT,
// COND=((0,NE,STEP010),OR,(16,NE,STEP010))
:
Because the STEP will be BYPASSED if any of the condition becomes true. So,for example,if MAXCC=0 for STEP010, 2nd part of condition will be true and STEP020 will be bypassed
And my requirement is, I want to execute the SORT step only if the return code from previous step(execution of program XXXX) is either 00 or 16. For all other return codes, the sort step should be skipped. _________________ Regards,
Mangsk
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum