Introduction to Creating Subsets of Observations

Purpose

In this section, you will learn to select specific observations from existing SAS data sets to create new data sets. Specifically, you will learn about the following concepts:
  • how to create a new SAS data set that includes only some of the observations from the input data source
  • how to create several new SAS data sets by writing observations from an input data source, using a single DATA step

Prerequisites

Before proceeding with this section, you should understand the concepts presented in the following sections:

Get Step-by-Step Programming with Base SAS 9.4 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.