For information about group monitors, see Group monitors (*GROUP).
If you are creating a group monitor for use in a switching scenario that requires a switch definition, ensure that you create the switch definition first. The switch definition automatically creates a group monitor of the same name.
Do the following to create a group monitor:
-
From the MIMIX Basic Main Menu, select option
12
(Work with monitors) and press Enter. -
From the Work with Monitors display, type a
1
(Create) in the Opt column next to the blank line at the top of the list and press Enter. -
The Create Monitor Object (CRTMONOBJ) display appears. Do the following:
At the Monitor prompt, provide a unique name for the monitor.
At the Event class prompt, specify
*GROUP
.Specify
*DFT
at the Monitor group prompt.To call a program before (pre-exit) and after (post-exit) each operation performed on a monitor, specify the program name and library for the Interface exit program prompt. If you want to run a command when the event is triggered, refer to the tips for Common parameters on the CRTMONOBJ command.
To call a program containing user-defined conditions after the predefined condition is met, specify the program name and library for the Condition program prompt.
To call a program that initiates user-defined actions when the predefined conditions and user-defined conditions are met, specify the program name and library for the Event program prompt.
Note: If you want to run a command instead of an event program, specify*NONE
for the Event program prompt and specify*CMD
for the Interface exit program prompt. After the monitor is created, you will be prompted to provide the command information.To use a different job description to submit the monitor job and for asynchronous jobs started for the monitor, specify the name and library for the Job description prompt.
Press Enter.
- If you want group monitors in FAILED or INACTIVE state to automatically start when the master monitor is started, specify *YES for the Start with master monitor prompt.
- Provide a text description of the monitor at the Description prompt and press Enter.
- If you specified *CMD for the Interface exit program, the Add Monitor
Information (ADDMONINF) display appears. Do the following:
Type the command that you want to use and provide the appropriate parameters and values.
Type the name of the library in which the command resides in the Library parameter and press Enter. You can also type *DFT to use the library specified on the Command parameter. If no library is specified on the Command parameter, the library list is used to locate the command. If the command is found, the library name is retained. If you specify *LIBL, the library list is used to locate the command.