Variable Read and Write Status
Interfaces with the Macro Facility
The DATA step, the SAS Component Language, and the SQL procedure provide
interfaces with the macro facility. The following tables list the elements that interact
with the SAS macro facility.
The DATA step provides elements that enable a program to interact with the macro
facility during DATA step execution.
Table 12.10 Interfaces to the DATA Steps
EXECUTE routine Resolves an argument and executes the resolved value at the next
RESOLVE function Resolves the value of a text expression during DATA step
SYMDEL routine Deletes the indicated macro variable named in the argument.
SYMEXIST function Returns an indication as to whether the named macro variable
SYMGET function Returns the value of a macro variable to the DATA step during
DATA step execution.
SYMGLOBL function Returns an indication as to whether the named macro variable is
global in scope.
SYMLOCAL function Returns an indication as to whether the named macro variable is
local in scope.
SYMPUT and SYMPUTX
Assigns a value produced in a DATA step to a macro variable.
170 Chapter 12 • Macro Language Elements