This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / SAS 问题请教:不完整的日期,比如月份缺失,有什么SAS功能可以将日期显示为“08xx96”,如日期为96年xx月8号,就是说如何告诉月份缺失?多谢
-jyl(北极冰镇的啤酒);
2005-6-8
(#2335928@0)
-
二种方案:1. 将年月日分开成三个单独的数字变量,用时再整合起来;2. 将日期变量用text表述,这样就可以任意用xx。任何一种都是先将日期变成非日期储存。欢迎续贴更多更好的方式。
-23456789(大白呼);
2005-6-8
(#2335999@0)
-
Yep, you remind me, thank you!the second approach is what I am looking for, saving the partial date as text format ,and if analysis is requested for this data, then input ,substring, MDY functions can be utilized to create a date. Thank you!
-jyl(北极冰镇的啤酒);
2005-6-8
{211}
(#2336120@0)