1 proc print data=mysas.ifthen8;2 format date yymmn6.;3 where year(date) < 2010 and month(date)<5;4 run;
对时间的筛选处理建议使用year month等函数。
在sort中用 Nodupkey DUPOUT=extraobs;可以用来删除重复项。
本文共 183 字,大约阅读时间需要 1 分钟。
1 proc print data=mysas.ifthen8;2 format date yymmn6.;3 where year(date) < 2010 and month(date)<5;4 run;
对时间的筛选处理建议使用year month等函数。
在sort中用 Nodupkey DUPOUT=extraobs;可以用来删除重复项。
转载地址:http://cidml.baihongyu.com/