Introducing Macro Variables

A Brief Overview

The SAS macro facility is a tool for extending and customizing SAS. It also reduces the amount of program code that you enter to perform common tasks. The macro facility has its own language, which enables you to package small or large amounts of text into units that are assigned names called macro variables. After a macro variable is created, you can insert the text into your code simply by referencing the macro variable by its name.
SAS macro variables enable you to substitute text in your SAS programs. Macro variables can also provide the following information:
  • operating system
  • SAS session
  • text strings
When you reference a macro variable in a SAS program, SAS replaces the reference ...

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.