To ensure that OPS/REXX parses host commands properly, use keywords and quotation marks correctly in host commands and understand how OPS/REXX interprets these commands.
To use keywords and quotation marks, follow these guidelines:
Example: Text string enclosed in single quotes
ADDRESS WTO "TEXT('VTAM IS DOWN')"
Example: The first statement sets an OPS/REXX variable called JOBNAME. The command text being sent to TSO through the OPSCMD command references this variable, so two sets of quotes delimit the text outside the variable name.
JOBNAME = MSG.JOBNAME ADDRESS TSO "OPSCMD COM($C '"jobname"')"
Example: Host command text that spans two or more lines
ADDRESS TSO
"OPSWTO TEXT('This message is so "||,
"long that I couldn't pos"||,
"sibly fit it on one line')"
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|