Joined: 08 Jun 2006 Posts: 45 Location: Trumbull, CT
Hi,
Anyone please help me to resolve this.
I have three STEPS in my JCL.
If the STEP1 RC is 0, then the STEP2 and STEP3 should be bypassed.
If the STEP1 RC is 16, then we have to execute STEP2 and STEP3.
I have used the following COND in my STEP2.
STEP2 EXEC DPBOPSSD,COND=(0,GT)
(if the return code from STEP1 is 0, the system bypasses STEP2. If the return code is greater than 0, the system executes STEP2.) But the JCL is working fine for RC 0, but when I get RC 16, Its not executing STEP2. Can anyone please suggest what condition code I have to use in STEP2 and in STEP3?
Note - I have tried almost all the options to solve my request. But still I am not getting the expected result.
If the STEP1 RC is 0, then the STEP2 and STEP3 should be bypassed.
If the STEP1 REC is 16, then we have to execute STEP2 and STEP3.
What about the other return codes?
assuming you have to bypass the step when RC is zero and execute it when RC is other then zero (that includes 16 anyway) your cond can be COND=(0,EQ).
Quote:
have used the following COND in my STEP2.
STEP2 EXEC DPBOPSSD,COND=(0,GT)
(if the return code from STEP1 is 0, the system bypasses STEP2. If the return code is greater than 0, the system executes STEP2.) But the JCL is working fine for RC 0
ZERO GT 16 is false. So when your STEP1 RC is 16, this step will execute when your RC is 16.