Chapter 7. Modifying Data Sets in Place

Example 7.1 Modifying All Observations in a Data Set in Place 164

Example 7.2 Modifying a Non-Indexed Data Set in Place by Matching by a Common Variable 167

Example 7.3 Modifying an Indexed Master Data Set in Place 172

Example 7.4 Modifying an Indexed Master Data Set in Place When Both the Master and Transaction Data Sets Contain Duplicate Key Values 176

The examples in this chapter show you how to change the contents of a data set in place without making a copy of it. The DATA steps use the MODIFY statement rather than the SET or MERGE statement, which each makes a copy of the data set.

You use the MODIFY statement when you want to change, add, or delete observations and you do not need to add variables ...

Get Combining and Modifying SAS® Data Sets: Examples Second Edition 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.