Introduction to Modifying SAS Data Sets

Purpose

Modifying changes observations directly in the original master file. It does not create a copy of the file. In this section, you will learn how to use the MODIFY statement in a DATA step to do the following:
  • replace values in a data set
  • replace values in a master data set with values from a transaction data set
  • append observations to an existing SAS data set
  • delete observations from an existing SAS data set

Prerequisites

Before continuing with this section, you should understand the concepts that are 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.