全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2060 2
2015-01-17
比如这样的:
contentid        contenttype        title        userid        extref        datecreated        Name        content
cid6257044175862193153        Post        Watch for AIR MILES specials at the grocery store. uid5638212984437526639        S6j/TWJ5vt1L88ya7hrktw==        2009-03-11 12:01:51.563 Featured tip        "Watch for AIR MILES specials at the grocery store. If you see a non-perishable food item with extra Bonus miles, but don't think you need that much, consider purchasing it and donating the extras to your local food bank."
cid7816625057236859877        Post        Get the new AIR MILES Toolbar uid5638212984437526639        S6j/TWJ5vt1L88ya7hrktw==        2009-03-11 12:06:34.707        Tips "Get the new AIR MILES Toolbar and get lots of free AIR MILES just for searching with Yahoo. You can get up to 30 reward miles each month!! And it's free to download. Just go to www.air.tool.cn"
cid8481937969092539422        Post        Sign up for email updates.        uid5638212984437526639 S6j/TWJ5vt1L88ya7hrktw==        2009-03-11 12:09:20.127        Tips        ""

其中有很多缺失值 “” 里面没东西的,每个值的长度也相差很大,求问input, informat, format怎么写哇~Date那个地方也不知道怎么informat因为既有date又有时间~~

总共就是这样几项:contentid        contenttype        title        userid        extref        datecreated        Name        content
下面内容怎么弄都是乱的 555, 我写的是:
DATA posts;
INFILE "/myfolders/airmiles2/posts.txt" FIRSTOBS=2 DSD DLM='09'x;
INPUT @'cid' contentid $ 1-22 contenttype $ title $
@'uid' userid $ extref $ Date Name $ content $;
INFORMAT contentid $30. contenttype $12. title $80.
userid $30. extref $25. Date E8601DT20.3 Name $30. content $255.;
FORMAT DATE DDMMYY10.;
RUN;
二维码

扫码加我 拉你入群

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

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

全部回复
2015-1-19 09:44:34
从这里看是乱的,导入sas软件后并不一定是乱的,你可以试试
二维码

扫码加我 拉你入群

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

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

2015-1-19 10:54:05
多尝试几次,总能准确读入的
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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