我现在的sas集中tradedate属性是 $25 字符型
我想转化为日期型变量 就是yymmdd8.
我直接采用
data x;
set x1;
format tradedate yymmdd8.;
run;
改不过来,log中还出现错误提示 在线求助

|
楼主: winnie6
|
5100
3
请教sas字符变量如何转化为日期变量的问题 |
|
学前班 70%
-
|
回帖推荐data one; input chardate1 :$6. chardate2 :$9. chardate3 $10. chardate4 :$9.;datalines;010199 31dec1999 21/09/2005 5/9/2005;/* Use the INPUT function to convert a character value that represents a date *//* into a SAS date value. Choose the second parameter to the INPUT function *//* based upon what the current character value looks like. Use a FORMAT *//* statement to apply the date fo ...
本帖被以下文库推荐
| ||
|
|
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


