Definition of Modifying
Modifying a SAS data set replaces, deletes, or appends
observations in an existing data set. Modifying a SAS data set is
similar to updating a SAS data set, but the following differences
exist:
You use a MODIFY statement along with a BY statement
to change an existing data set.
-
Modifying cannot create a new data set, but updating can.
-
Unlike updating, modifying does not require that the master data set or the transaction data set be sorted.
In the following example,
the MASTER data set is updated by YEAR.
Figure 16.6 Modifying a Data Set
Notice that the TRANSACTION data set contains missing values. When ...
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.