楼主: liuliuqiu
1438 5

[有偿编程] excel导入SAS [推广有奖]

  • 6关注
  • 2粉丝

已卖:35份资源

副教授

64%

还不是VIP/贵宾

-

威望
0
论坛币
2239 个
通用积分
8.1161
学术水平
3 点
热心指数
5 点
信用等级
5 点
经验
14393 点
帖子
429
精华
0
在线时间
1129 小时
注册时间
2009-3-24
最后登录
2025-12-11

楼主
liuliuqiu 发表于 2017-4-13 15:52:17 |AI写论文
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 ...
关键词:EXCEL exce xcel cel Excel表

沙发
Newkoarla 发表于 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!

藤椅
Terry950901 在职认证  发表于 2017-4-13 17:24:05
楼主可以尝试使用stattransfer,支持Matlab,SAS等多种格式。

板凳
67890 发表于 2017-4-14 05:05:26
using dbms=xls for an excel 2007 .xls file and dbms=xlsx for excel 2010 file
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
liuliuqiu + 3 + 3 + 3 热心帮助其他会员

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

报纸
foocares 发表于 2017-4-14 23:51:36
楼上正解。用proc import 和dbms=csv或xlsx来实现导入excel.
同时我发现,很多时候不能直观地用dbms=excel来导入,系统会报错说connect没有注册云云。
但真正的原因是dbms=excel必须要安装 ACE引擎才能使用!这个坑让人困惑了好久。
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
liuliuqiu + 3 + 3 + 3 热心帮助其他会员

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

地板
sas9.4 发表于 2017-4-16 21:06:14 来自手机
DBMS =xlsx
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
liuliuqiu + 3 + 3 + 3 热心帮助其他会员

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 22:14