We need to specify different EXITCODEs for agent WOBs in different SUBAPPLs. How to specify EXITCODE for agent WOBs in same SUBAPPL?
Release : 11.4 & 12.0
Component : ESP WORKLOAD AUTOMATION
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.