This course is designed for experienced SAS programmers who would like to use the SAS macro language.
Duration
2 or 3 days
Prerequisites
A knowledge of the fundamentals of SAS is required. A course such as “Introduction to SAS” or equivalent experience is needed. In addition, students should know how to run SAS at their site, know how to create and store SAS datasets and libraries, and know how to use SAS statements such as MERGE, SET, DO, PUT, and FILE.
Abstract
This course will cover all of the major facilities of the SAS macro system. This two or three day class is a mixture of lecture and extensive “hands‑on” exercises, including a case study example used to develop an actual macro system in the three day class.
Objectives
Understand the relationship between the SAS macro system and the other components of SAS such as the DATA step and the SAS Display Manager
Use automatic macro variables to capture and change system information
Create and use your own macro variables for modifying code
Design macros to make your SAS programming tasks easier
Define local and global macro variables
Interpret macro tracing and error messages and debug SAS macros
Learn and use macro functions
Understand SAS quoting and DATA step interface functions
Apply learned skills to the case study example (3 day class only)