//MYJOB JOB ,A.SMITH,COND=(10,LT)
|
|
|
//STEP1 EXEC PGM=A
.
.
.
.
|
6
|
Before STEP2:
1. Is 10 less than 6? No.
2. Is the return code 2 or 4? No.
Execute STEP2
|
//STEP2 EXEC PGM=B,COND=((2,EQ),(4,EQ))
.
.
.
.
.
|
2
|
Before STEP3:
1. Is 10 less than 2 or 6? No.
2. Did one or more of the preceding
steps terminate abnormally? No.
Bypass STEP3.
|
//STEP3 EXEC PGM=C,COND=ONLY
.
.
.
.
.
|
–
|
Before STEP4:
1. Is 10 less than 2 or 6? No.
2. Is 5 greater than 6? No.
3. Is one of the preceding return codes
equal to 2? Yes. Bypass STEP4.
|
//STEP4 EXEC PGM=D,
// COND=((5,GT,STEP1),(2,EQ))
.
.
|
–
|
Before STEP5:
1. Is 10 less than 2 or 6? No.
Execute STEP5.
|
//STEP5 EXEC PGM=E
.
.
.
.
.
.
|
9
|
Before STEP6:
1. Is 10 less than 9, 2, or 6? No.
2. Is 8 greater than 9? No.
3. Did one of the preceding steps
terminate abnormally? No.
Execute STEP6.
|
//STEP6 EXEC PGM=F,
// COND=((8,GT,STEP5),EVEN)
.
.
.
.
.
.
|
10
|
Before STEP7:
1. Is 10 less than 10, 9, 2, or 6? No.
2. Is 4 greater than return code of STEP4?
STEP4 was bypassed and did not produce a
return code so this test evaluates as FALSE.
Execute STEP7.
|
//STEP7 EXEC PGM=G,COND=(4,GT,STEP4)
.
.
.
|
12
|
Before STEP8:
1. Is 10 less than 12, 10, 9, 2, or 6? Yes.
Bypass STEP8 and STEP9.
|
//STEP8 EXEC PGM=H
.
.
.
|
–
|
|
//STEP9 EXEC PGM=I,COND=ONLY
|
–
|
|
//ABC JOB 12345,COND=(5,EQ)
|
|
|
//STEP1 EXEC PGM=A
.
.
.
.
|
4
|
Before STEP2:
1. Is 5 equal to 4? No.
2. Is 7 less than 4? No.
Execute STEP2.
|
//STEP2 EXEC PGM=B,COND=(7,LT)
.
.
.
.
.
|
ABEND
|
Before STEP3:
1. Is EVEN or ONLY specified in
STEP3? Yes.
2. Is 5 equal to 4? No.
3. Is 20 greater than 4? Yes.
Bypass STEP3.
|
//STEP3 EXEC PGM=C,
// COND=((20,GT,STEP1),EVEN)
.
.
.
.
.
|
–
|
Before STEP4:
1. Is EVEN or ONLY specified in
STEP4? Yes.
2. Is 5 equal to 4? No.
3. Are any preceding return codes
equal to 3? No. Execute STEP4.
|
//STEP4 EXEC PGM=D,COND=((3,EQ),ONLY)
.
.
.
|
6
|
Before STEP5:
1. Is EVEN or ONLY specified in
STEP5? No. Bypass STEP5.
|
//STEP5 EXEC PGM=E,COND=(2,LT,STEP3)
.
.
.
|
–
|
Before STEP6:
1. Is EVEN or ONLY specified in
STEP6? No. Bypass STEP6.
|
//STEP6 EXEC PGM=F
.
.
.
.
.
.
.
|
–
|
Before STEP7:
1. Is EVEN or ONLY specified in
STEP7? Yes.
2. Is 5 equal to 6 or 4? No.
3. Is 6 equal to the return code of STEP5?
STEP5 was bypassed and did not produce a
return code so this test evaluates as FALSE.
Execute STEP7.
|
//STEP7 EXEC PGM=G,
// COND=((6,EQ,STEP5),ONLY)
.
.
.
|
5
|
Before STEP8:
1. Is 5 equal to 5, 6, or 4? Yes.
Bypass STEP8 and STEP9.
|
//STEP8 EXEC PGM=H,COND=EVEN
.
.
.
|
–
|
|
//STEP9 EXEC PGM=I
|
–
|
|