楼主: junzhenglee
7041 6

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

  • 7关注
  • 2粉丝

已卖:14份资源

讲师

49%

还不是VIP/贵宾

-

威望
0
论坛币
3398 个
通用积分
37.5012
学术水平
8 点
热心指数
10 点
信用等级
5 点
经验
36412 点
帖子
228
精华
0
在线时间
825 小时
注册时间
2012-5-11
最后登录
2025-12-10

楼主
junzhenglee 发表于 2015-2-12 22:39:49 |AI写论文
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.
不客气,暂时不缺钱

7
YJ0052 发表于 2019-3-27 17:04:04
为什么我这么不能解决呢,就是把EXCEL变成XLSX

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-2 21:17