Drop Statement

Contents Index


Used in the datastep, the drop statement drops variables from the data set. Example:

data score;
infile `c:\courses\mh160.dat';
input last $ first $ m1-m3 final;
grade=0.2*m1+0.2*m2+0.2*m3+0.4*final;
drop m1-m3 final;
run;

The data set score will contain only the 3 variables last, first, and grade.

It is preferable to use the drop= data set option.


Contents Index

Copyright © 1997 by Jerry Alan Veeh. All rights reserved.