【SAS NOTE】年累计
摘要:
1 data a; 2 input date num; 3 datalines; 4 201201 1 5 201202 2 6 201203 3 7 201301 4 8 201302 5 9 ;10 run;11 data b;12 set a;13 c=substr(put(date,$6.),1,4);14 run;15 proc print data=b;16 run;17 data c;18 set a;19 retain;20 y=substr(put(date,$6.),1,4);21 m=substr(put(... 阅读全文
posted @ 2013-03-07 14:50 colipso 阅读(237) 评论(0) 推荐(0)
浙公网安备 33010602011771号