Need to monitor the status of started task an application.
Release: All
Component: ESP Workload Automation
ESP provides system activity functions to check the status of activity on the system, including jobs and tape drives.
System Activity function "ACTIVE" can be used to check if a job or an address space is active on the current system, and returns a value based on that test.
Example: TRACKDEF STC NAME(mystc) MODEL(MODEL1)
EXAMPLE: The following example sets resources if the task 'mystc' is active.
IF ACTIVE('mystc') THEN DO ESPNOMSG RESDEF mytask_up SET AVAIL(1) ESPNOMSG RESDEF mytask_down SET AVAIL(0) ENDDO ELSE DO ESPNOMSG RESDEF mytask_up SET AVAIL(0) ESPNOMSG RESDEF mytask_down SET AVAIL(1) ENDDO
The System Activity Functions (ACTIVE, JOBONQ, and TAPES) are documented in the ESP Workload Automation User Guide.
System Activity Functions
Loading the JTDT (Job Tracking Definition Table).
LOADJTDT Command
TRACKDEF statement in the JTDT (Job Tracking Definition Table).
TRACKDEF Statement