Reading and Concatenating SAS Data Sets |
Selecting
Variables |
Where to Specify DROP= and KEEP=
You can specify DROP= and KEEP= anywhere you name a SAS data set. When
concatenating, you can specify these options in either the DATA statement
or the SET statement, depending on whether or not
you want to process values of the variables in that DATA step:
|
data lab23.drug1h(drop=placebo); set research.cltrials(drop=triglycerides uricacid); if placebo='YES'; run; |
|
data lab23.drug1h(drop=placebo); set research.cltrials(drop=triglycerides uricacid); if placebo='YES'; run; |
Used in the DATA statement, the DROP= option simply drops the variables from the new data set. However, they are still read from the original data set and are available within the DATA step. |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.