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 event 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 event program completed successfully. The monitor remains active. For a group monitor, the associated event program completed successfully. Status for the group monitor changes to INACTIVE. |
1 |
The event program failed and the monitor remains active. The status of the monitor will change to FAILED/ACT. If the monitor participates in a group, the group monitor is active, and this monitor is the last monitor in a group to go to a failed status (FAILED or FAILED/ACT), the monitor may trigger the group monitor to run its condition and event program. If the event program is defined to a group monitor, the event program failed. Status of the group monitor is changed to FAILED. |
2 |
The event program failed and the monitor does not remain active. The status of the monitor is changed to FAILED. |
Exception ID
OUTPUT; CHAR(7)
A user-defined message ID that is sent to the message log. The exception ID should provide meaningful information to the person who maintains the monitor to determine what may have occurred in the event program. The monitor does not use the exception ID.