Skip to Main Content
SAS Certified Professional Prep Guide
book

SAS Certified Professional Prep Guide

by SAS Institute
October 2019
Intermediate to advanced content levelIntermediate to advanced
430 pages
19h 4m
English
SAS Institute
Content preview from SAS Certified Professional Prep Guide

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS Certified Specialist Prep Guide

SAS Certified Specialist Prep Guide

SAS Institute
SAS in Practice

SAS in Practice

Ekta Saraogi

Publisher Resources

ISBN: 9781642954692