请选择 进入手机版 | 继续访问电脑版
楼主: junzhenglee
6051 6

SAS如何导入超过256列数据(Excel) [推广有奖]

  • 7关注
  • 2粉丝

讲师

41%

还不是VIP/贵宾

-

威望
0
论坛币
3119 个
通用积分
43.1126
学术水平
8 点
热心指数
10 点
信用等级
5 点
经验
38149 点
帖子
227
精华
0
在线时间
780 小时
注册时间
2012-5-11
最后登录
2024-3-29

junzhenglee 发表于 2015-2-12 22:39:49 |显示全部楼层 |坛友微信交流群
30论坛币
如题,我用的是从Datasteam下载的公司财务数据,excel(xlsx)格式,公司数据是按列分割的,公司数大于1000。如果直接导入的话,只能导入255列数据。

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


最佳答案

jl60156 查看完整内容

use the following when import your excel file DBMS=XLSX REPLACE;
关键词:EXCEL xcel exce cel DataS Excel 如何 财务
jl60156 发表于 2015-2-12 22:39:50 |显示全部楼层 |坛友微信交流群
use the following when import your excel file

DBMS=XLSX REPLACE;
已有 1 人评分论坛币 收起 理由
admin_kefu + 50 热心帮助其他会员

总评分: 论坛币 + 50   查看全部评分

使用道具

teqel 发表于 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;”

使用道具

junzhenglee 发表于 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.

使用道具

junzhenglee 发表于 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.

使用道具

teqel 发表于 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.
不客气,暂时不缺钱

使用道具

YJ0052 发表于 2019-3-27 17:04:04 |显示全部楼层 |坛友微信交流群
为什么我这么不能解决呢,就是把EXCEL变成XLSX

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

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

GMT+8, 2024-3-29 19:13