Previous Topic: Issue VM Commands Through OPSCMD

Next Topic: Use OPSCMD Subcommand Mode

Issue the OPSCMD from CLISTs

In most cases, you issue OPSCMD from a CLIST to capture the output of system commands in variables so the CLIST can then act on that output. However, you can also direct the command output to a TSO terminal.

Note: If you are using OPSCMD from a CLIST and you turn on CLIST debugging options, you will probably receive a bogus first line of output (reflecting the command you entered), with all the correct output lines starting with the second line returned through the SYSOUTTRAP feature. If your CLIST uses debugging options, your code must allow for this extra output line. OPS/REXX TRACE options do not introduce extra lines into the external data queue.

Examples: Issue the OPSCMD from CLISTSs

The following OPSCMD examples show how to issue the same command with different abbreviations for OPSCMD: