Processing Macro Variables

SAS Processing

You have seen how to create and reference macro variables. In order to work with macro variables in the programs that you write, you need to understand how macro variables are processed and stored. First, it is important that you understand how SAS processing works.
A SAS program can be any combination of the following:
  • DATA steps and PROC steps
  • global statements
  • SAS Component Language (SCL) code
  • Structured Query Language (SQL) code
  • SAS macro language code.
When you submit a program, it goes to an area of memory called the input stack. This is true for all code that you submit, such as a DATA step, SCL code, or SQL code.
Once SAS code is in the input stack, SAS
  • reads ...

Get SAS Certification Prep Guide, 4th Edition 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.