SYMGLOBL Function

Returns an indication of whether a macro variable is in global scope to the DATA step during DATA step execution.

Category: Macro
See: SYMGLOBL Function in SAS Macro Language: Reference

Syntax

SYMGLOBL (argument)

Required Argument

argument

can be one of the following items:

  • the name of a macro variable within double quotation marks but without an ampersand.
  • the name of a DATA step character variable, specified with no quotation marks, which contains a macro variable name.
  • a character expression that constructs a macro variable name.

Details

The SYMGLOBL function searches only the global symbol table for the indicated macro variable and returns 1 if the macro variable is found or 0 if the macro variable is not found.
For more information, see SYMGLOBL Function in SAS Macro Language: Reference.