Previous Topic: CALL

Next Topic: EXECIO


CMD/COMMAND

The CMD or COMMAND command enables a REXX procedure to issue a CA NetMaster command.

This command has the following format:

CMD command_text

or

COMMAND command_text
command_text

Specifies any valid REXX text, variable, or expression containing the command.

After checking that the required command_text is specified, the command_text is processed. No validity checking of command_text is performed. No command execution result is returned, and RC=0 is always returned.

Note: Unlike all other REXX subcommand environments, the CA NetMaster command always executes asynchronously. Consequently, neither a command completion message nor a return code is provided. However, you can use the ADDRESS NETVIEW PIPE NM command to execute these commands and process their responses.

Example: CMD/COMMAND

trace o
ADDRESS 'NM'
'cmd syscmd d t'
sysc = 'syscmd d a,l'
cmd sysc