Application processing requirements:
When STEP1 has a return code of “0”, release group A jobs (job10A1 & job10A2). job10A1 releases job10A2. Bypass the group A jobs when STEPRC is not equal to “0”
When STEP2 has a return code of “0”, release group B jobs (job10B1 & job10B2). job10B1 releases job10B2. Bypass the group B jobs when STEPRC is not equal to “0”
When STEP3 has a return code of “0”, release group C jobs (job10C1 & job10C2). job10C1 releases job10C2 Bypass the group C jobs when STEPRC is not equal to “0”
When STEP4 has a return code of “0”, release group D jobs (job10D1 & job10D2). job10D1 releases job10D2 Bypass the group D jobs when STEPRC is not equal to “0”
When STEPRC condition code is met, only one group of the job can process a time. GROUP A (job10A1 => job10A2) => GROUP B (job10B1 => job10B2) => GROUP C (job10C1 => job10C2) => GROUP D (job10D1 => job10D2)
Release : 12.0
Component : ESP WORKLOAD AUTOMATION
APPL applname
jcllib 'my.jcl.lib'
NOTIFY ABEND FAILURE USER(username)
CCCHK RC(1:4095) FAIL CONTINUE
JOB job10T4
RUN ANY
RELEASE ADD(job10A1(U)) COND(STEPRC('.STEP1',0))
RELEASE ADD(job10B1(U)) COND(STEPRC('.STEP2',0))
RELEASE ADD(job10C1(U)) COND(STEPRC('.STEP3',0))
RELEASE ADD(job10D1(U)) COND(STEPRC('.STEP4',0))
RELEASE ADD(testA(U)) COND(not STEPRC('.STEP1',0))
RELEASE ADD(testB(U)) COND(not STEPRC('.STEP2',0))
RELEASE ADD(testC(U)) COND(not STEPRC('.STEP3',0))
RELEASE ADD(testD(U)) COND(not STEPRC('.STEP4',0))
ENDJOB
JOB testA LINK PROCESS
RUN TODAY
ESPNOMSG AJ groupa BYPASS APPL(%ESPAPPL..%ESPAPGEN)
ESPNOMSG AJ job10A1 DROPDEP(job10T4) APPL(%ESPAPPL..%ESPAPGEN)
ENDJOB
JOB testB LINK PROCESS
RUN TODAY
ESPNOMSG AJ groupb BYPASS APPL(%ESPAPPL..%ESPAPGEN)
ESPNOMSG AJ job10B1 DROPDEP(job10T4) APPL(%ESPAPPL..%ESPAPGEN)
ENDJOB
JOB testC LINK PROCESS
RUN TODAY
ESPNOMSG AJ groupc BYPASS APPL(%ESPAPPL..%ESPAPGEN)
ESPNOMSG AJ job10C1 DROPDEP(job10T4) APPL(%ESPAPPL..%ESPAPGEN)
ENDJOB
JOB testD LINK PROCESS
RUN TODAY
ESPNOMSG AJ groupd BYPASS APPL(%ESPAPPL..%ESPAPGEN)
ESPNOMSG AJ job10D1 DROPDEP(job10T4) APPL(%ESPAPPL..%ESPAPGEN)
ENDJOB
SUBAPPL groupa
JOB job10A1
RUN TODAY
ESPNOMSG AJ testA BYPASS APPL(%ESPAPPL..%ESPAPGEN)
RELEASE job10A2
ENDJOB
JOB job10A2
RUN TODAY
RELEASE job10B1
ENDJOB
SUBAPPL groupb
JOB job10B1
RUN TODAY
ESPNOMSG AJ testB BYPASS APPL(%ESPAPPL..%ESPAPGEN)
RELEASE job10B2
ENDJOB
JOB job10B2
RUN TODAY
RELEASE job10C1
ENDJOB
SUBAPPL groupc
JOB job10C1
RUN TODAY
ESPNOMSG AJ testC BYPASS APPL(%ESPAPPL..%ESPAPGEN)
RELEASE job10C2
ENDJOB
JOB job10C2
RUN TODAY
RELEASE job10D1
ENDJOB
SUBAPPL groupd
JOB job10D1
RUN TODAY
ESPNOMSG AJ testD BYPASS APPL(%ESPAPPL..%ESPAPGEN)
RELEASE job10D2
ENDJOB
JOB job10D2
RUN TODAY
ENDJOB