Issue:
I have one link job which triggers a event for another job. Once the event is suspended and the link job still tries to trigger the event an alert comes to operator.
I need when the event is in suspended state, the link job should turn off automatically.
I have the link job as follows :-
JOB TRIG.JOB1 LINK PROCESS
ESPNOMSG TR USER.EVENT1 ADD
RUN ANY
ENDJOB
Once the event USER.EVENT1 is suspended the Link job TRIG.JOB1 should stop running automatically.
Environment:
- Ca Workload Automation ESP Edition Release 11.4
Cause:
SE checked the code (even the oldest version we have) and this is WAD. When job is readied for execution we set a flag in TDR to ignore SUSPEND count and then the TDR executor lets this TDR through even if the even has increased suspend count.
Resolution/Workaround:
Suggest to use REXXON/REXXOFF block within the link to parse the output of L LEVEL(USER.EVENT1) VERBOSE
and check for the suspend count. In case of non zero suspend count, the link would not issue the ESPNOMSG TR USER.EVENT1 ADD. Something like this:
JOB TRIG.JOB1 LINK PROCESS
REXXON PROC
X=TRAPOUT('LINE.')
"ESP L LEVEL(event_name) VERBOSE"
X=TRAPOUT('OFF')
SC = WORDPOS('SC(0),',LINE.1)
IF SC \= 0 THEN
"ESPNOMSG TR event_name ADD"
REXXOFF
ENDJOB
Additional Information: