楼主: omi
1626 1

[问答] sas 9.2 server error in libname excelcs [推广有奖]

  • 0关注
  • 0粉丝

已卖:4份资源

小学生

7%

还不是VIP/贵宾

-

威望
0
论坛币
1093 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
689 点
帖子
4
精华
0
在线时间
4 小时
注册时间
2010-7-18
最后登录
2024-2-25

楼主
omi 发表于 2013-11-27 09:49:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
I am using sas 9.2 server (os is 64bit) to import the excel file (.xlsx format)

When I use the import procedure, it works,

PROC IMPORT OUT= WORK.aa
            DATAFILE= "...\aa.xlsx"
            DBMS=EXCELCS REPLACE;
     RANGE="Sheet1$";
     SCANTEXT=YES;
     USEDATE=YES;
     SCANTIME=YES;
RUN;

But when I use the libname statement, I get the error message as below,

libname aa excelcs "...\aa.xlsx";

ERROR: The EXCELCS engine cannot be found.
ERROR: Error in the LIBNAME statement.

Could someone help me to solve the issue? Thank!
二维码

扫码加我 拉你入群

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

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

关键词:libname Server Error Serve EXCEL procedure message server cannot engine

沙发
luciangele 发表于 2019-9-18 11:36:58
When you specify dbms=excelcs in proc import, the procedure actually uses the PCFILES LIBNAME engine.
Hence, when you try to use LIBNAME statement, you should use the engine name PCFILES like this:

LIBNAME aa PCFILES PATH='...\aa.xls';

Also remember to use path=, it can't be omitted.

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

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