全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6937 6
2015-02-12
悬赏 30 个论坛币 已解决
如题,我用的是从Datasteam下载的公司财务数据,excel(xlsx)格式,公司数据是按列分割的,公司数大于1000。如果直接导入的话,只能导入255列数据。

请问:各位前辈,有什么好的解决办法没?


最佳答案

jl60156 查看完整内容

use the following when import your excel file DBMS=XLSX REPLACE;
二维码

扫码加我 拉你入群

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

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

全部回复
2015-2-12 22:39:50
use the following when import your excel file

DBMS=XLSX REPLACE;
二维码

扫码加我 拉你入群

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

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

2015-2-12 23:46:42
google来的:
I googled for a while and got that by defalt the number of variables for importing excel data is 255 by SAS, because the limit of 256 columes in old version office excel. So, we have to let SAS know that it is a new version .xlsx file by changing the above codes “DBMS=EXCEL REPLACE;” to “DBMS=XLSX REPLACE;”
二维码

扫码加我 拉你入群

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

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

2015-2-13 00:16:26
jl60156 发表于 2015-2-12 23:44
use the following when import your excel file

DBMS=XLSX REPLACE;
Thank you.  The problem has been solved by your solution.  Actually, my problem is not specify the "range" correctly.
二维码

扫码加我 拉你入群

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

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

2015-2-13 00:18:33
teqel 发表于 2015-2-12 23:46
google来的:
I googled for a while and got that by defalt the number of variables for importing exc ...
Thank you very much. I'm sorry to award the first answer because he is a little earlier.
二维码

扫码加我 拉你入群

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

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

2015-2-13 07:36:03
junzhenglee 发表于 2015-2-13 00:18
Thank you very much. I'm sorry to award the first answer because he is a little earlier.
不客气,暂时不缺钱
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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