Using CCFAIL For CA Workload Automation EE (ESP)

Document ID : KB000051153
Last Modified Date : 14/02/2018
Show Technical Document Details

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