全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2266 2
2010-01-28
rtrtrtrtrtrt
二维码

扫码加我 拉你入群

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

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

全部回复
2010-1-31 01:32:48
ernist 发表于 2010-1-28 13:39
rtrtrtrtrtrt
There are a couple of ways I can think of to align the data.
1) format it to year month
2) use intnx function to align all date within a month to the first/last day of that month.

77   data _null_;
78       do   date='1jan2010'd to '15jan2010'd by 5;
79              date1=intnx('month',date,0,'beginning');
80              put  date / date yymmdd10. /
81                       date  yymm7. /  date1  yymmdd10. ///;
82       end;
83   run;

18263
2010-01-01
2010M01
2010-01-01



18268
2010-01-06
2010M01
2010-01-01



18273
2010-01-11
2010M01
2010-01-01
二维码

扫码加我 拉你入群

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

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

2010-5-21 23:48:47
2# bobguy


太牛了
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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