最近看到sas online tutor上的一段程序
data work.getobs5(drop=obsnum); obsnum=5; set company.usa(keep=manager payroll) point=obsnum; output; stop; run; proc print data=work.getobs5 noobs; run;请问各位高手:为啥要drop掉obsnum?obsnum会出现在getobs5这个数据集中吗?我试着运行了一下这个程序,sas提示错误:WARNING: The variable obsnum in the DROP, KEEP, or RENAME list has never been referenced.
请各位帮小弟解决一下~~不甚感激!!!!!
SAS Help:
Tip: You must supply the values of the POINT= variable. For example, you can use the POINT= variable as the index variable in some form of the DO statement.
Tip: The POINT= variable is available anywhere in the DATA step, but it is not added to any new SAS data set.