When you create a new data set, you can use options to drop
or keep variables that are stored in the original data set. You name the
variables you want to drop or keep by using the DROP= and KEEP= data set options.
You can use the KEEP= option instead of the DROP= option if more variables are dropped than kept. You specify data set options in parentheses after a SAS data set name. |
General form, DROP= and KEEP= data set
options:
(DROP=variable-1 < . . . variable-n>) where
|
You can specify DROP= and KEEP= anywhere you name a SAS data set:
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; |
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.