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

Chapter 6: Standardizing Coding Using SAS Arrays

In this chapter, we will revisit SAS arrays and consider why they are usually necessary in extract, transform, and load (ETL) when processing code for a SAS data warehouse. First, we will go over examples of where arrays can be useful and demonstrate creating a set of variables as an output array. We'll do this by using a set of native variables as an input array.

Next, we'll go over when we should add conditions to an array, as well as how array processing changes when conditions are added. Arrays are often used when creating index variables, so a discussion will be included about factors for SAS data warehouse managers to consider when choosing to serve up index variables or components for their formulas in the SAS data warehouse.

We will then discuss how array processing is documented in a SAS data warehouse, before ending this chapter with a summary of limitations imposed by using SAS arrays, including limitations...