DROP

Purpose

Deletes variables, arrays, or named constants from the data set.

Syntax

DROP { vlist } @

Arguments and Subcommands

vlist

Names of the variables, arrays or named constants to be dropped from the current active data set.

Remarks

When variables are dropped from the data set, the program reallocates data arrays, thereby increasing the number of new variables which can be created. The DROP command leaves the original data file unchanged. The updated data may be retained with the SAVE command. (In the EPICURE regression programs, variables in the current model cannot be dropped.)

The DROP command is also used to drop named constants or arrays. It is not possible to drop a variable included in an array without first dropping the array in which the variable is included.

Examples

a)  To drop variables from the data file:

DROP city agegp @

b)  To drop a variable called sex, named constants #i and #j, and an array called \times:

DROP sex #i #j \times @