SAS Drop Statement
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.
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.
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
如果您认为本词条还有待完善,请 编辑
上一篇 SAS Filename Statement 下一篇 SAS Do Loops