Creating and Managing Symbolic Variable Tables
en-938872/2 4 - 21
4
4.2.7 Providing a List of Symbolic Variables
SAVE Provides the main programme and subroutines with a list of the
symbolic variables declared in any subroutine.
Syntax
SAVE [Symb1] / [Symb2] ...
SAVE Provides the main programme and subroutines with a
list of the symbolic variables declared in any subroutine.
[Symb1] / [Symb2] ... List of symbolic variables.
Notes
The symbolic variables provided may be declared within subroutines at any nesting
levels.
The variables declared after SAVE must be separated by the character «/».
Example
After a return from subroutine %30, programme %10 and subroutine %20 as well as
any new subroutines can use symbolic variables [V1] and [TB(4)].
%10
N..
N.. G77 H20
N..
%20
N..
N.. G77 H30
N..
%30
N..
VAR [V1] / [TB(4)]
ENDV
N..
SAVE [V1] / [TB(4)]
N..