【SAS NOTE】where & time

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;可以用来删除重复项。

posted on 2013-01-25 18:13  colipso  阅读(240)  评论(0编辑  收藏  举报

导航