Can ESP confirm if a Started Task is ACTIVE or Inactive
search cancel

Can ESP confirm if a Started Task is ACTIVE or Inactive

book

Article ID: 25548

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Can ESP check if a Started Task is ACTIVE or Inactive and send a message?

 

Environment

Component: ESP Workload Automation
Release:   12.0

Resolution

ESP can determine if a Started Task is ACTIVE or INACTIVE, and then decide to schedule other processes as required. 

Example:  Check if DB2 is down after the operator has issued a command to stop it:

1) Define Procedure

  APPL TESTDB2 
  IF ACTIVE('DB2') THEN +  
  ESP TRIGGER PROD.DB2UP 

The Event PROD.DB2UP could send a message or Email to the operator that DB2 is still up.

The ACTIVE function of ESP can be used to check on any JOB/STC/TSOUSER etc.

2) Define Event

  EVENT ID(PROD.EVENT1)  SYSTEM(ESP)  REPLACE 
  INVOKE 'PROD.PROCLIB(TESTDB2)' NOCACHE 
  ENDDEF 

The event should be triggered after a certain time has elapsed so DB2 has time to completely stop.