Questions on JOBFAILEVENT for ESP JOB tracking model
search cancel

Questions on JOBFAILEVENT for ESP JOB tracking model

book

Article ID: 12089

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

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?

Environment

Component: ESP Workload Automation
Release: ALL

Resolution

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. 

 

 

Additional Information

CCFAIL doesn't have the same effect as CCCHK.