Page 1 of 1

COND for FLUSH step

PostPosted: Fri Mar 16, 2012 8:09 pm
by mathew28
Hi,

My JCL has the below steps.

STEP01

STEP02, COND=(4,LE,STEP01)

STEP03, COND=(4,LE,STEP02)

STEP04, COND=(4,LE,STEP03)

I want a step to execute, only if the previous step's RC = 0 or 4.
But in the above case, when step 02 is skipped because step01's RC was 8.

since, RC of Step02 was FLUSH. The step03 and step04 got executed.

How to resolve this,

if we give only COND(4,LE) will it skip if any of the step's RC is more than 4. Is that correct ?

Re: COND for FLUSH step

PostPosted: Fri Mar 16, 2012 10:33 pm
by BillyBoyo
Easy enough to try out with no fear of damage. Three IDCAMS steps and you're there. SET MAXCC to 8 in first step, see if no 3 runs.

Re: COND for FLUSH step

PostPosted: Fri Mar 16, 2012 11:43 pm
by prino
Use IF-THEN-ELSE-ENDIF