Chapter Contents

Previous

Next
SAS Macro Language: Reference

Interfaces with the Macro Facility

The DATA step, Screen Control Language, and the SQL procedure provide interfaces with the macro facility. Interfaces from the DATA Steps, Interfaces from Screen Control Language, and Interfaces from the SQL Procedure 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.

Interfaces from the DATA Steps
Element Description
EXECUTE routine resolves an argument and executes the resolved value at the next step boundary
RESOLVE function resolves the value of a text expression during DATA step execution
SYMGET function returns the value of a macro variable to the DATA step during DATA step execution.
SYMPUT routine assigns a value produced in a DATA step to a macro variable

Screen Control Language (SCL) provides two elements for using the SAS macro facility to define macros and macro variables for SCL programs.

Interfaces from Screen Control Language
Element Description
SYMGETN returns the value of a global macro variable as a numeric value
SYMPUTN assigns a numeric value to a global macro variable

The SQL procedure provides a feature for creating and updating macro variables with values produced by the SQL procedure.

Interfaces from the SQL Procedure
Element Description
INTO assigns the result of a calculation or the value of a data column

For more information, see Chapter 8, "Interfaces with the Macro Facility."


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.