Previous Topic: DOSCMD KeywordNext Topic: PPQWRITE Keyword


OSCMD Keyword

The OSCMD keyword tells CA Automation Point to issue an operating system command to a session. For example, you could use the OSCMD keyword to invoke a CA OPS/MVS REXX program.

This keyword has the following format:

OSCMD(commandtext)

or

OSCMD((commandtext) SESSION(sessid))
commandtext

Specifies the text of the command.

SESSION

If you specify the SESSION operand, the OSCMD keyword directs the command 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 Notes:

Example:

The following message indicates that CA OPS/MVS is active:

OPS0123O AOF INITIALIZATION COMPLETE

The following rule issues a command to CA OPS/MVS indicating that CA Automation Point is active and ready for CA OPS/MVS to use it:

MSGID(OPS0123O), OSCMD(AXC HERE)