STEP5 should run if RC=0 or 4 in STEP4
STEP5 should FLUSH and job should abend if RC=1 or 2 or 3 or 4 in STEP3 and > 4 in STEP4. To make it happen how should I code COND in STEP5
I had below test job
//STEP1 EXEC PGM=IDCAMS IEBGENER STEP
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP2 EXEC PGM=IDCAMS, COBOL STEP
// COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP3 EXEC PGM=IDCAMS, SORT STEP
// COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP5 EXEC PGM=IDCAMS, SUBSEQUENT STEP
// COND=((0,NE),(4,LT,STEP4))
//*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP2 EXEC PGM=IDCAMS, COBOL STEP
// COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP3 EXEC PGM=IDCAMS, SORT STEP
// COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
//STEP5 EXEC PGM=IDCAMS, SUBSEQUENT STEP
// COND=((0,NE),(4,LT,STEP4))
//*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC = 0
//*
But STEP5 is getting flush. Plz suggest.