Previous Topic: How to Use the SAY InstructionNext Topic: Use External Subroutines


Reference a Stem Variable in an INTERPRET Statement or VALUE Function

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”.