Using ENF event code 67 to listen for check status changes
If your check is authorized, it can use the ENFREQ LISTEN service to detect check status changes. On the ENFREQ service, specify theX'20000000' status change event qualifier and the listener user exit routine that is to receive control after the specified event occurs. The listener user exit specified receives control when IBM® Health Checker for z/OS® comes up and notifies the check routine of the status change.
- The check completed with a different result than the last time it ran. For example, the check ran successfully after the previous check run issued an exception or vice versa.
- The check was deactivated or deleted
This event may not be presented if IBM Health Checker for z/OS is terminating (indicated by a X'40000000' ENF 067 event for NotAvailable - see Using ENF event code 67 to listen for IBM Health Checker for z/OS availability).
If the check routine decides it is no longer interested in knowing if IBM Health Checker for z/OS is up or not, it can issue the ENFREQ REQUEST=DELETE request to delete the listen request.