IBM Support

TRUE DEADLINE ALERT -- issued at deadline if job not complete.

Question & Answer


Question

A notification is required if a job has not ended (complete or error) prior to a specified time, regardless of whether or not the job has STARTED.

Cause

TWSz DURATION and LATEOPER alerts are GLOBAL --- either active for ALL jobs or none. Also, DURATION alerts are not issued unless the job is in STARTED status, LATEOPER alerts are based on LATEST START TIME, and DEADLINE WTOs are available only for mainframe jobs and are issued only if the job is in STARTED status when its defined deadline occurs.

A simple straightforward technique is needed to implement a notification when SELECTED operations on ANY TWSz workstation have not ended at their expected times, regardless of whether or not the operation has STARTED. It may also be desirable for a notification to be issued at or shortly after the operation's "planned end time" rather than waiting for its actual deadline.

Answer

This can be easily accomplished by adding two scheduled operations to the current plan for each operation to be monitored.. For simplicity, in the attached example, those operations are placed into the same application as the job being monitored.

The first added operation is TIME DEPENDENT to issue a notification at the appropriate time for the job being monitored. This TIME DEPENDENT operation has no PREDECESSORs, only a SUCCESSOR, so it becomes READY as soon as it is added to the CURRENT PLAN.

The second added operation is an OPSTAT job to set the TIME DEPENDENT notification operation to "C". It is a CONDITIONAL SUCCESSOR of the job being monitored, and runs when the monitored job is set to EITHER COMPLETE or ERROR status.

If the monitored operation ENDS (either status C or E) before its deadline, the OPSTAT sets the TIME DEPENDENT notification operation to "C", thus preventing it from running.

If the monitored operation does NOT END before its deadline, the notification operation executes. When the monitored job ends later, the OPSTAT executes, but is ignored by TWSz, since the notification operation has already completed.

A BATCHLOADER-format file for a demonstration application is attached to this document.

[{"Product":{"code":"SSRULV","label":"IBM Workload Scheduler for z\/OS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions;Version Independent","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
13 September 2019

UID

swg21645215