Book Image

Mastering SAS Programming for Data Warehousing

By : Monika Wahi
Book Image

Mastering SAS Programming for Data Warehousing

By: Monika Wahi

Overview of this book

SAS is used for various functions in the development and maintenance of data warehouses, thanks to its reputation of being able to handle ’big data’. This book will help you learn the pros and cons of storing data in SAS. As you progress, you’ll understand how to document and design extract-transform-load (ETL) protocols for SAS processes. Later, you’ll focus on how the use of SAS arrays and macros can help standardize ETL. The book will also help you examine approaches for serving up data using SAS and explore how connecting SAS to other systems can enhance the data warehouse user’s experience. By the end of this data management book, you will have a fundamental understanding of the roles SAS can play in a warehouse environment, and be able to choose wisely when designing your data warehousing processes involving SAS.
Table of Contents (18 chapters)
1
Section 1: Managing Data in a SAS Data Warehouse
7
Section 2: Using SAS for Extract-Transform-Load (ETL) Protocols in a Data Warehouse
12
Section 3: Using SAS When Serving Warehouse Data to Users

Understanding examples of arrays used to create variables

So far, when we have talked about arrays, we have focused on the technical aspects of programming them, such as their syntax and how they operate inside a data step. In this chapter, we will shift gears and focus on the practical side of using arrays to create variables en masse, which is often done when performing ETL protocols as part of managing a SAS data warehouse.

First, this section will focus on the most common use of arrays in SAS data warehouses, which is to create new warehouse variables based on variables that exist in the native dataset. Next, we will focus on how adding conditions to array processing can improve the quality of output, but can also add complexity to operations.

Array processing in SAS is fast and provides the warehouse manager with an opportunity to standardize ETL protocols. Standardizing can be done through array documentation and by using standard arrays during ETL. However, using arrays...