Description:
When using CCFAIL similarly to CCCHK, it didn't work as expected. With the following Job definition, JOB TEST failed when step COPY01 got RC>0. Why?
JOB TEST CCFAIL (COPY01,GT,8) CCFAIL (*,GT,0) RUN DAILY ENDJOB
Solution:
Need to code CCFAIL for each exceptional step. And "CCFAIL (*,GT,0)" has to be on APPL level, which will be overwritten when there is a CCFAIL statement on JOB level; otherwise it will be picked and the JOB will fail when any step gets RC GT 0. Here is the correct way:
CCFAIL (*,GT,0) JOB TEST CCFAIL (COPY01,GT,8) (COPY02,GT,0) RUN DAILY ENDJOB