全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1402 5
2017-04-13
悬赏 5 个论坛币 已解决
excel表有4000列,如何导入SAS?
现在只能导入255列

最佳答案

Newkoarla 查看完整内容

This is the limitation of SAS on 32bit system, if you run your SAS on 64bit Windows you can try %let import_path=yourExcelFile.xlsx; Proc IMPORT OUT= WORK.ImportedExcel   DATAFILE= "&import_path"   DBMS=XLSX REPLACE; run; If you only can run your SAS on 32bit Windows, you can try to export the Excel sheet to a TXT file with Tab delimitation, then import from the TXT. Good l ...
二维码

扫码加我 拉你入群

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

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

全部回复
2017-4-13 15:52:18
This is the limitation of SAS on 32bit system, if you run your SAS on 64bit Windows you can try

%let import_path=yourExcelFile.xlsx;
Proc IMPORT OUT= WORK.ImportedExcel
  DATAFILE= "&import_path"
  DBMS=XLSX REPLACE;
run;

If you only can run your SAS on 32bit Windows, you can try to export the Excel sheet to a TXT file with Tab delimitation, then import from the TXT.

Good luck!
二维码

扫码加我 拉你入群

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

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

2017-4-13 17:24:05
楼主可以尝试使用stattransfer,支持Matlab,SAS等多种格式。
二维码

扫码加我 拉你入群

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

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

2017-4-14 05:05:26
using dbms=xls for an excel 2007 .xls file and dbms=xlsx for excel 2010 file
二维码

扫码加我 拉你入群

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

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

2017-4-14 23:51:36
楼上正解。用proc import 和dbms=csv或xlsx来实现导入excel.
同时我发现,很多时候不能直观地用dbms=excel来导入,系统会报错说connect没有注册云云。
但真正的原因是dbms=excel必须要安装 ACE引擎才能使用!这个坑让人困惑了好久。
二维码

扫码加我 拉你入群

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

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

2017-4-16 21:06:14
DBMS =xlsx
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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