Specifying EXITCODE for Agent WOBs in same SUBAPPL.
search cancel

Specifying EXITCODE for Agent WOBs in same SUBAPPL.

book

Article ID: 237718

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Need to specify different EXITCODEs for agent WOBs in different SUBAPPLs. 

Environment

Release : All Releases

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.