

ADDRESS OPS Commands › ADDRESS OPS Command Syntax
ADDRESS OPS Command Syntax
Issue an OPS command from within a REXX program by specifying an ADDRESS OPS statement, as shown:
ADDRESS OPS "opscommand operands(s)"
Operands shown in brackets ([ ]) are optional.
Follow these guidelines when issuing an OPS command:
- Use parentheses to pass values when specifying a required or optional operand with an OPS command. For example:
SYSTEM(MSF system name)
- Do not name your variables with names reserved for OPS commands when creating REXX programs that issue OPS commands.
- Uppercase or lowercase characters are valid. For example, the following are both valid:
TEXT(text) and TEXT(TEXT)
- Leading and trailing blanks are ignored. For example, the following are both valid:
TEXT(text) and TEXT ( text )
- Single and double quotes are valid. For example, the following are all valid:
COMMAND(commandstring) and COMMAND('commandstring') and COMMAND("commandstring")
- Use two adjacent double quotes ("") to indicate a literal double quote. Use two adjacent single quotes ('') to indicate a literal single quote.
- The usual delimiter for the COMMAND operand in the OSFTSO and OPER command processors is the single quote ('). If the command string you are specifying contains single quotes, use a double quote (") as the operand delimiter, change the REXX delimiter from a double quote (") to a single quote ('), and use two adjacent single quotes ('') to indicate a literal single quote in the text of the command string.
For example,
ADDRESS OPS 'OSFTSO SYSTEM(OPS123) COMMAND("SEND ''djones has been notified'' USER(jsmith)")'
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|