Provides a method to stop a LINK job from triggering an event once the event is suspended.
When a job is readied for execution, ESP sets a flag in TDR to ignore SUSPEND count.
Add REXXON/REXXOFF logics to the LINK PROCESS to parse the output of "L LEVEL(user.event) VERBOSE" to check the suspend count.
In case of non-zero suspend count, the LINK job would not issue "ESPNOMSG TR user.event ADD".
Example:
JOB TRIG.JOB1 LINK PROCESS
REXXON PROC
X=TRAPOUT('LINE.')
"ESP L LEVEL(user.event) VERBOSE"
X=TRAPOUT('OFF')
SC = WORDPOS('SC(0),',LINE.1)
IF SC \= 0 THEN
"ESPNOMSG TR user.event ADD"
REXXOFF
ENDJOB