Chapter 4: Advanced SAS Coding

Overview

DO Loop

ARRAY Statements

SCAN Function

FIND Function

PUT Function

FIRST. and LAST. Statements

Macros Overview

Macro Variables

Automatic Macro Variables

User-Defined Macro Variables

Macros

Defining and Calling Macros

Chapter Review

Overview

We have covered several basic data exploration and data manipulation techniques. These techniques will certainly get you up and running with SAS programming, and you can spend years learning all the various options of each of these techniques and become proficient in these methods. However, there are several additional techniques that can significantly expand and improve a data scientist’s codebase. These methods can improve your ability to efficiently manipulate data ...

Get End-to-End Data Science with SAS 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.