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:
OPSCMD d a,l
OC d a,l
OPSCMD *i a
OPSCMD #cp q n
OPSCMD COMMAND(d r,l)
OPSCMD command(D r,l)
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |