Previous Topic: OPS/REXX InstructionsNext Topic: CALL Instruction


ADDRESS Instruction

The default ADDRESS environment is different for AOF rules (except request rules) than for REXX programs. These defaults are ADDRESS MESSAGE for all AOF rules except request rules, and ADDRESS TSO for request rules and all other REXX programs.

To change these defaults, use the CA OPS/MVS AOFDEFAULTADDRESS and REXXDEFAULTADDRESS parameters.

Important! The string following the ADDRESS keyword is treated as a constant and does not need to be enclosed in quotation marks. For example, this instruction:

TSO = "MESSAGE"
ADDRESS TSO
"TIME"

results in the host command being sent to the TSO host command environment.

If your intention is to have the host command be determined dynamically, use the following examples as a guideline, making sure to specify the host command on a separate line. Otherwise, it is ignored.

TSO = "MESSAGE"
ADDRESS VALUE TSO
"TIME"
TSO = "MESSAGE"
ADDRESS (TSO)
"TIME"

For a complete discussion of the ADDRESS instruction, see THE REXX LANGUAGE: A Practical Approach to Programming by M.F. Cowlishaw.