The SAS Macro Facility

SAS Processing of Macros

A SAS program can be any combination of the following elements:
  • DATA steps or PROC steps
  • global statements
  • Structured Query Language (SQL) code
  • SAS macro language code
When you submit a SAS program, the code is copied to a memory location called the input stack. The presence of text in the input stack triggers a component called the word scanner to begin its work.
Figure 7.1 SAS Processing with an Input Stack
SAS Processing with Input Stack
The word scanner has two major functions. First, it pulls the raw text from the input stack character by character and transforms it into tokens. Second, it sends tokens ...

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.