Here are some questions on JOBFAILEVENT for ESP JOB tracking model:
#1 Will it fire when the scenario match JOBABENDEVENT?
#2 How to avoid the triggers with non-zero return codes that should be considered as successful?
Component: ESP Workload Automation
Release: ALL
Answers:
#1 Yes, this event is triggered when a job abends (JOBABENDEVENT scenario) or ends on non-zero condition codes.
#2 In order to have this event triggered only when the job fails or abends, add proper CCCHK statement in ESPPARM/ESP Proc. For example:
- When "CCCHK RC(1:11) OK CONTINUE" is added to the JOB definition in ESP Proc, this event won't be triggered even when the job ends with non-zero return codes lower than 12;
- When "CCCHK RC(1:4095) OK CONTINUE" is added to ESPPARM, this event won't be triggered for non-zero return codes and behaves as JOBABENDEVENT, except it matches the criteria of failure on other CCCHK statements specified on APPL/JOB level.
CCFAIL doesn't have the same effect as CCCHK.