O'Reilly logo

Combining and Modifying SAS® Data Sets: Examples Second Edition by Michele M. Burlew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required