How to stop a LINK job from triggering an event once it is suspended.
search cancel

How to stop a LINK job from triggering an event once it is suspended.

book

Article ID: 46202

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Provides a method to stop a LINK job from triggering an event once the event is suspended.

Cause

When a job is readied for execution, ESP sets a flag in TDR to ignore SUSPEND count.

Resolution

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