Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Protecting Variables with the PROCEDURE Instruction z/OS TSO/E REXX User's Guide SA32-0982-00 |
|
When you use the PROCEDURE instruction immediately after the subroutine label, all variables used in the subroutine become local to the subroutine and are shielded from the main part of the exec. You can also use the PROCEDURE EXPOSE instruction to protect all but a few specified variables. The following two examples show the differing results when a subroutine uses the PROCEDURE instruction and when it doesn't. Example Using the PROCEDURE Instruction
Example Without the PROCEDURE Instruction
|
Copyright IBM Corporation 1990, 2014
|