Example 7.3 Modifying an Indexed Master Data Set in Place
Modify a master data set in place based on information supplied by a transaction data set. Observations can be added to, modified in, or deleted from the master data set. The master data set and transaction data set do not contain any multiple occurrences of the key variables.
|Featured Step||DATA step|
|Featured Step Options and Statements||MODIFY statement in conjunction with the OUTPUT, REPLACE, and REMOVE statements
KEY= option in the MODIFY statement
_IORC_ automatic variableMacro function %SYSRC
Input Data Sets
Data set POLICIES contains data for 12 policy holders. Assume it has a simple index on variable ID. The POLICIES data set is also used in Example 4.5.