请选择 进入手机版 | 继续访问电脑版
楼主: liuliuqiu
1200 5

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

  • 6关注
  • 2粉丝

副教授

62%

还不是VIP/贵宾

-

威望
0
论坛币
2340 个
通用积分
8.9561
学术水平
3 点
热心指数
5 点
信用等级
5 点
经验
14393 点
帖子
429
精华
0
在线时间
1113 小时
注册时间
2009-3-24
最后登录
2024-2-29

liuliuqiu 发表于 2017-4-13 15:52:17 |显示全部楼层 |坛友微信交流群
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
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-28 21:25