SYMGETN returns the
value of a global macro variable as a numeric value and stores it
in the specified numeric SCL variable. You can also use SYMGETN to
retrieve the value of a macro variable whose name is stored in an
SCL variable. For example, to retrieve the value of SCL variable UNITVAR,
whose value is 'UNIT', submit the following code:
SYMGETN returns values
when SCL programs execute. If SYMGETN cannot locate
macro-variable, it returns a missing value.
To return the value
stored in a macro variable when an SCL program compiles, use a macro
variable reference in an assignment statement:
SCL variable=¯o-variable;
Note: It is inefficient to use
SYMGETN to retrieve values that are not assigned with SYMPUTN and
values that are not numeric.