| Type: | Macro function |
1 if the macro variable
is found in the global symbol table, otherwise it returns a 0. See Scopes of Macro Variables for more information about the global and local symbol
tables and macro variable scopes.
1 and 0 to TRUE and FALSE respectively:
%global x;
%macro test;
%local y;
%if %symglobl(x) %then %put %nrstr(%symglobl(x)) = TRUE;
%else %put %nrstr(%symglobl(x)) = FALSE;
%if %symglobl(y) %then %put %nrstr(%symglobl(y)) = TRUE;
%else %put %nrstr(%symglobl(y)) = FALSE;
%if %symglobl(z) %then %put %nrstr(%symglobl(z)) = TRUE;
%else %put %nrstr(%symglobl(z)) = FALSE;
%mend test;
%test;