【问题标题】:SAS proc import xlsm filesSAS proc 导入 xlsm 文件
【发布时间】:2014-11-28 04:22:31
【问题描述】:

我想为 xlsm 数据进行 proc 导入。

proc import
    out = outdata
    datafile = "C:\User\Desktop\data.xlsm"  
    dbms = excelcs replace;
    sheet = "SheetA";
run;

错误信息是:

ERROR: CLI error trying to establish connection: [Microsoft][ODBC Excel Driver]General error
       Unable to open registry key Temporary (volatile) Ace DSN for process 0x4058 Thread 0x3dc0
       DBC 0x2c1780c                                                            Excel'.
ERROR: Error in the LIBNAME statement

当我改用 dmbs=excel 时;我收到以下错误消息:

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.

【问题讨论】:

  • 需要更多信息。你有 ACCESS to PC FILES 许可吗?您有 PC 文件服务器吗? 64 位还是 32 位 SAS? 64 位还是 32 位 Excel/Office?

标签: sas


【解决方案1】:

我认为这应该与64位系统下的PC文件服务器有关。一个快速的解决方案(我通常使用的)是首先将 .xlsm 文件保存为 .csv 格式,然后进行 SAS 导入。

【讨论】:

    猜你喜欢
    • 2022-08-12
    • 2015-12-05
    • 1970-01-01
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    • 2020-07-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多