Back to Browse

JCL - COND parameter part2

742 views
Jun 8, 2019
5:08

Example 1: //STEP6 EXEC PGM=PGM1,COND=(4,GT,STEP3) Step 6 will be executed when If the RC from STEP3 is greater than or equal to 4 • Assume the return code of STEP3 is 5. • Now it evaluates 4 is greater than 5, Condition is false, So it executes step 6. Step 6 will be bypassed when the RC from STEP3 is 0 through 3 Ex: 4 is greater than 0 Example 2: //TEST2 EXEC PGM=PGMB,COND=((16,GE),(90,LE,STEP1),ONLY) Executes the step TEST2 when all the three conditions are true • Preceding job steps abnormally terminated. • The return codes from all preceding steps are 17 or greater. • The return code from STEP1 is 89 or less. By passes the step TEST2 if anyone of the following is true • All preceding job steps terminated normally. • The return code from any preceding step is 0 through 16. • The return code from STEP1 greater than 90. Example 3: //STEP1 EXEC PGM=PGM1 . . //STEP2 EXEC PGM=PGM2,COND=(4,EQ,STEP1) . . //STEP3 EXEC PGM=PGM3,COND=((8,LT,STEP1),(8,GT,STEP2)) Assume the return code of STEP1 is 4. it evaluates the condition as 8 is greater than 4. Condition is false here. So STEP3 gets executed. The system does not perform the second return code test((8,GT,STEP2)) because STEP2 was bypassed.

Download

0 formats

No download links available.

JCL - COND parameter part2 | NatokHD