Conditionally Processing Observations from Multiple SAS Data Sets |
Purpose |
When combining SAS data sets, you can process observations conditionally, based on which data set contributed that observation. You can do the following:
Determine which data set contributed each observation in the combined data set.
Create a new data set that includes only selected observations from the data sets that you combine.
Determine when SAS is processing the last observation in the DATA step so that you can execute conditional operations, such as creating totals.
Prerequisites |
Before using this section, you should understand the concepts presented in the following sections:
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.