If a REXX INTERPRET statement or VALUE function references a stem variable that is represented as an OPS/REXX global variable (for example, GLVTEMP1.SomeName or GLOBAL.SomeName) or an AOF environmental variable applicable to the current rule (for example, MSG.TEXT or CMD.TEXT), then the stem variable is resolved only if a variable that has the same stem is directly referenced somewhere else in the rule section, even if that section is never executed.
Example: Stem Variable in an Interpret Statement
The value of the MSG.TEXT variable in the following example is “Test for OPS/MVS”.
)MSG TEST )PROC interpret "say msg.text" return "NOACTION"
The result of the SAY instruction in the INTERPRET statement is:
OPS1000I MSG.TEXT
)MSG TEST )PROC interpret "say msg.text" return "NOACTION" NeverExecuted = msg.id
The result of the SAY instruction in the INTERPRET statement is:
“Test for OPS/MVS”
|
Copyright © 2014 CA.
All rights reserved.
|
|