Chapter 8: Using Macros to Automate ETL in SAS
Up to now, we have learned how to run PROCs and data steps in SAS, especially for extract, transform, and load (ETL) protocols, which make up a lot of the work of running a SAS data warehouse. In this chapter, we will learn about SAS macros and macro variables, and how they can help us with ETL.
First, we will learn how to build base code, then convert it to a macro. We will do this with both PROCs and data steps. Next, we will talk about different ways of storing and calling macros. Finally, we will look at an example of using macros to automate loading transformed data.
This chapter will teach you the following skills:
How to make transformation macros by developing standalone data step code ...
Get Mastering SAS Programming for Data Warehousing 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.