For an input data set, excludes the specified variables from processing; for an output data set, excludes the specified variables from being written to the data set.
Valid in: | DATA step and PROC steps |
Category: | Variable Control |
lists one or more variable names. You can list the variables in any form that SAS allows.
data plan1 plan2; set payroll(drop=salary gender); if hired<'01jan98'd then output plan1; else output plan2; run;
data plan1 plan2(drop=salary gender); set payroll; if hired<'01jan98'd then output plan1; else output plan2; run;