Using Macro Variables

Using User-Defined Macro Variables

%LET Statement Syntax

Use the %LET statement to define your macro variable and assign a value to it.
Syntax, %LET statement:
%LET variable=value;
variable
is any name that follows the SAS naming convention.
value
can be any string from 0 to 65,534 characters long.
Note: If the variable already exists, then the value replaces the current value. If either variable or value contains a reference to another macro variable (such as &macvar), the reference is evaluated before the assignment is made.

Using Automatic Macro Variables

What Are Automatic Macro Variables?

SAS creates and defines several automatic macro variables for you. Automatic macro variables contain ...

Get SAS Certified Professional Prep Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.