OM Keyin Options

You can use the following options for the OM keyin when switching operating modes:

If CP-AMS matches the termination message in the active database, the console message is considered answered even if CP-AMS does not execute any actions. CP‑AMS also matches this message when the Exec appends the time that the run ended to the message. This option is most useful for production systems with very stable jobs.

Only the primary read-only termination message sounds an alarm.

These options are not valid in all operating modes. The following table shows the relationships between the various operating modes and the OM keyin options:

Option

Attended

Casual

Unattended

AAMS

Allowed

Implicit

Implicit

DBUG (applies to all the options turned on for a particular mode)

Allowed

Allowed

Allowed

TRME

Not allowed

Not allowed

Allowed

UALM

Not allowed

Allowed

Allowed

Examples of OM Keyins

In the following example, the keyin changes the operating mode to casual. CP-AMS pattern matching is on and CP-AMS executes any actions defined with casual mode.

OM,C

In the next example, assume that the current operating mode is casual. The first keyin changes the operating mode to attended. CP-AMS pattern matching remains on and CP-AMS executes actions defined with attended mode. The second keyin leaves the operating mode as attended and turns CP-AMS pattern matching off. The third keyin changes the operating mode to unattended mode and turns pattern matching on.

OM,A
OM,A OFF/AAMS
OM,U

In the following example, the keyin changes the operating mode to casual and turns Test mode on (since the DBUG option is specified). CP-AMS pattern matching is on and CP‑AMS logs, rather than executes, actions defined with casual mode.

OM,C ON/DBUG

The following OM keyin changes the operating mode to unattended, turns Test mode off, and turns the UALM option on. CP-AMS pattern matching is on and CP-AMS executes actions defined with unattended mode. Additionally, CP-AMS sounds an alarm when a run terminates abnormally.

OM,U OFF/DBUG,ON/UALM

In the next example, the keyin changes the operating mode to unattended and turns on the TRME and UALM options. CP-AMS pattern matching is on and CP-AMS executes actions defined with unattended mode, sounds an alarm when a run terminates abnormally, and aborts non-privileged runs that issue a read-and-reply message.

OM,U ON/TRME/UALM

In the following example, assume that the operating mode is casual. This OM keyin turns on the TRME, UALM, and DBUG options. These options take effect only when the next operating mode change to unattended is performed. Since no mode change occurred, CP-AMS pattern matching is on and CP-AMS executes actions defined with casual mode.

OM ON/TRME/UALM/DBUG

In the next example, the OM keyin causes the OMKEY background run to send the message, "TERMINATE CMR NOW", to the console. CP-AMS can match this message and execute automatic actions.

OM,M TERMINATE CMR NOW