Monitor
INPUT; CHAR(10)
The name of the monitor that triggered this program call.
Event class
INPUT; CHAR(10)
The type of event class for the monitor. Possible values are:
*MSGQ |
The monitor is triggered when a specified message queue receives a predetermined message. |
*INTERVAL |
The monitor is triggered when the specified time interval has passed. |
*TIME |
The monitor is triggered at a specified time. Time can by specified either by scheduled date or scheduled day. |
*JRN |
The monitor is triggered when the specified journal receives a predetermined journal entry code and entry type. |
*GROUP |
The monitor is triggered when the last monitor that belongs to the group has a status of FAILED or FAILED/ACT. |
Detailed information
INPUT; CHAR(*)
Provides the predefined condition information that caused the condition program to be called. The value of the monitor type parameter determines the content of this parameter. For a description of the format of the detailed information for each monitor type, see Additional data structures .
Return code
OUTPUT; CHAR(1)
The following are valid return codes:
0 |
The condition program completed successfully. The conditions have been met. The event program is called, if one exists |
1 |
The condition program failed or the condition was not met. The event program is not called and the monitor remains active. For group monitors, the condition program defined to the group monitor failed or the condition was not met. The status of the group monitor changes to inactive. |
If a value other than 0 is specified for the Retry attempts (RETRY) parameter of the monitor definition, the condition program will be called multiple times and the condition must be met for the number of retry attempts before the event program is called. If the condition program does not return 0 (conditions have been met) the retry counter will be reset to try again for the specified number of times.