全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1585 1
2013-11-27
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!
二维码

扫码加我 拉你入群

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

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

全部回复
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.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群