Previous Topic: Format for OPTIONS InstructionsNext Topic: Usage Notes for OPTIONS Instructions


Duration of OPTIONS Settings

Subroutines called by a REXX program inherit the OPTIONS settings, but the settings do not apply to any calling programs. If a subroutine changes a limit or skips monitoring, the previous limit is reinstated when the subroutine returns to its caller.

If you use multiple keywords referencing the same OPTIONS setting in the same REXX statement, OPS/REXX uses the last keyword. For example, OPS/REXX will not limit the number of host commands if you code this instruction:

OPTIONS "MAXCOMMANDS=100 NOMAXCMDS"