How to specify EXITCODE for Agent WOBs in same SUBAPPL with ESP Workload Automation?
search cancel

How to specify EXITCODE for Agent WOBs in same SUBAPPL with ESP Workload Automation?

book

Article ID: 237718

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

We need to specify different EXITCODEs for agent WOBs in different SUBAPPLs. How to specify EXITCODE for agent WOBs in same SUBAPPL?

Environment

Release : 11.4 & 12.0

Component : ESP WORKLOAD AUTOMATION

Resolution

There is no SUBAPPL level statement in ESP Workload Automation. Here are two workarounds:
- Add "EXITCODE 0 SUCCESS" to the JOBs.
- Add the IF logic like below on the APPL level:

IF %ESPSUBAPPL EQ 'SUB1' THEN EXITCODE 1 FAILURE 
ELSE EXITCODE 1 SUCCESS                          

Then if the agent WOBs belong to SUBAPPL SUB1, then "EXITCODE 1 FAILURE" will be used; for other SUBAPPLs, "EXITCODE 1 SUCCESS" will be used.