
|
楼主: bhzhangkelei
|
3448
3
如何通过sas程序对日期进行补全? |
|
本科生 22%
-
|
回帖推荐if substr(date,6,2) in ("01","03","05","07","08","10", "12") then date=strip(date)||'-31';
else if substr(date,6,2) in ("04","06","09","11") then date=strip(date)||'-30';
else do;
n= input(substr(date,1,4),best.);
if (mod(n,4) ne 0) or (mod(n,100)=0 and mod(n,400) ne 0) then date=strip(date)||'-28';
else date=strip(date)||'-29';
end;
| ||
|
|
| ||
|
只有一个罗纳尔多
|
||
| |||||||||||||||||
|
观钓颇逾垂钓趣 种花何问看花谁
|
|||||||||||||||||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


