Chapter 14: Subsetting and Combining SAS Data Sets

Introduction

This chapter discusses ways to subset (filter) a SAS data set and to combine data from several SAS data sets. For those readers who understand SQL (structured query language), you should know that SAS supports SQL in PROC SQL. Because SQL is covered elsewhere in many texts, this chapter does not include a discussion of PROC SQL. The methods described in this chapter, SET, MERGE, and UPDATE, are DATA step statements that provide an alternative to PROC SQL.

Subsetting (Filtering) Data in a SAS Data Set

As you saw in the first section of this book, you can subset or filter a SAS data set using interactive point-and-click operations provided by SAS Studio. This section shows you how ...

Get Getting Started with SAS Programming 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.