Chapter Contents |
Previous |
Next |
DROP |
Valid: | in a DATA step |
Category: | Information |
Type: | Declarative |
Syntax | |
Arguments | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
DROP variable-list; |
Tip: | You can list the variables in any form that SAS allows. |
Details |
The DROP statement applies to all the SAS data sets that are created within the same DATA step and can appear anywhere in the step. The variables in the DROP statement are available for processing in the DATA step. If no DROP or KEEP statement appears, all data sets that are created in the DATA step contain all variables. Do not use both DROP and KEEP statements within the same DATA step.
Comparisons |
Examples |
drop time shift batchnum;
drop grade1-grade20;
data inventry; drop purchase repair; infile file-specification; input unit part purchase repair; totcost=sum(purchase,repair); run;
See Also |
Data Set Option:
| |||||
Statements:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.