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

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

Goal

Modify a non-indexed master data set in place with transactions supplied in a second data set. Add and delete observations from the master data set. Match the two data sets by variables in common that uniquely identify the observations. The transaction data set can contain duplicate BY values of the variables in common while the master data set does not.

Example Features

Featured StepDATA step
Featured Step Options and StatementsMODIFY and BY statements

_IORC_ automatic variable

Macro function %SYSRC
A Closer LookControlling When the MODIFY Statement Outputs an Observation Handling Missing Values When Using the MODIFY and BY Statements

Input Data Sets ...

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