全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
915 1
2013-07-15
SAS中如果代码中仅仅有月份没有具体的年月日,像input   Month;  Month中包含 FEB, MARTH, APR.采用GROUP BY时,电脑会自动按照月份排列,那像FEB,电脑里面是具体怎么存储的?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-7-15 12:23:13
可能要看month的存储类型吧
1) 如果过来的时候month:$. 应该就是以“Jan” “Feb”形式存储
2)如果过来的时候month:w.d 应该是1 2 3 形式存储
options user=work;
data temp;
date=date();
month_c1=put(date,month.);
month_c2=put(date,worddate3.);
month_n1=month(date);
month_n2=input(month_c1,2.);
run;
month_c1 month_c2 以$存储
month_n1 month_n2 以w.d存储
可以相互转换
附件列表
360截图20130115120915155.bmp

原图尺寸 54.05 KB

360截图20130115120915155.bmp

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群