In a JCL of 2 steps I want to execute step2 only when return code of step1 is 12 or when there is a "system abend". Is that possible?
Code: Select all
//STEP1 EXEC PGM=PROG1
.
.
//STEP2 EXEC PGM=PROG2,COND=(12,GT,STEP1)
.
Code: Select all
//STEP1 EXEC PGM=PROG1
.
.
//STEP2 EXEC PGM=PROG2,COND=(12,GT,STEP1)
.
Code: Select all
//IFBAD IF (ABEND) THEN
//ERROR EXEC PGM=ERRRTN
// ENDIF
//NEXTSTEP EXEC
Code: Select all
//IFBAD IF (ABEND=TRUE) THEN
//ERROR EXEC PGM=ERRRTN
// ENDIF
//NEXTSTEP EXEC
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute