When you use OPSCMD in a CLIST or REXX program, you can capture the response to the issued command in REXX or CLIST variables. The program can then analyze the response and take the appropriate action.
The following list shows the output variables that OPSCMD creates. The value prefix is the value specified with the PREFIX keyword.
Variable Name if CMDRESP(CLIST): prefix and prefix0
Variable Name if CMDRESP(REXX): prefix.0
Variable Name if CMDRESP(CLIST): prefixn
Variable Name if CMDRESP(REXX): prefix.n
The n value is an integer corresponding to the output line number.
Variable Name if CMDRESP(CLIST): prefixnW
Variable Name if CMDRESP(REXX): prefix.n.0
Variable Name if CMDRESP(CLIST): prefixnWm
Variable Name if CMDRESP(REXX): prefix.n.m
The m is a number indicating the position of the word in output line n.
Variable Name if CMDRESP(CLIST): prefixRC
Variable Name if CMDRESP(REXX): prefixRC
Variable Name if CMDRESP(CLIST): prefixCONNAME
Variable Name if CMDRESP(REXX): prefixCONNAME
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |