Previous Page | Next Page

Statements

DROP Statement



Excludes variables from output SAS data sets.
Valid: in a DATA step
Category: Information
Type: Declarative

Syntax
Arguments
Details
Comparisons
Examples
See Also

Syntax

DROP variable-list;


Arguments

variable-list

specifies the names of the variables to omit from the output data set.

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


See Also

Data Set Option:

DROP= Data Set Option

Statements:

DELETE Statement

KEEP Statement

Previous Page | Next Page | Top of Page