全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1726 1
2019-02-12
The following output is desired:
Obs employee bdate years
1 Susan 4015 10
2 Michael . 6
Which SAS program correctly reads in the raw data?
D.
data employees;
infile ‘file specification’ dlm=’*’ dsd;
input employee $ bdate : mmddyy10. years;
run;
问题请教:bdate: mmddyy10.  里的为什么需要冒号?

二维码

扫码加我 拉你入群

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

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

全部回复
2019-2-13 12:28:58
网上有例子, 介绍了冒号的用处:
https://support.sas.com/resources/papers/proceedings/proceedings/sugi26/p073-26.pdf
The colon informat modifier indicates that the value is tobe read from the next nonblank column until the pointer reachesthe next blank column or the end of the data line, whichevercomes first.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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