Previous Topic: SCRIPT KeywordNext Topic: SESSION Keyword


SESSCMD Keyword

The SESSCMD keyword specifies a keystroke string that can contain text or keystrokes to be sent to the session that issued the current message.

This keyword has the following format:

SESSCMD(keystrokes)

or

SESSCMD((keystrokes) SESSION(sessid))
keystrokes

Specifies the keystrokes to be sent to the specified session. This value can be any character string with a maximum length of 488 characters (after expanding all variables). The command line of the receiving session must be long enough to accept all of the characters in the string.

SESSION

Specifies the session to which to send the command. If you specify the SESSION operand, the SESSCMD keyword directs the string to the indicated session (sessid), rather than to the session that issued the message. This operand cannot be used to specify the name of an internal session (AXC, VOX, or OPS).

Usage Note:

Use the SESSCMD keyword instead of the OSCMD keyword to send PF keys and other special keystrokes such as MODE SELECT.

Example:

The following message appears on a mainframe processor console during IPL and indicates that z/OS is waiting for the operator to press the TOD enable switch:

IEA889A DEPRESS TOD CLOCK SECURITY SWITCH

Once the TOD clock is active, z/OS sets the mainframe clock.

The following rule sets the mainframe clock by sending an S1 command (the TOD enable switch) to the console on session MACH1_PCON:

MSGID(IEA889A), SESSCMD((S1) SESSION(MACH1_PCON))