Using libname statement in 64 bit SAS to interact with 32 Excel

前端 未结 3 1756
梦如初夏
梦如初夏 2021-01-19 16:23

I have 64 bit SAS 9.4 installed and 32 bit Office 2007. When I had 32 bit SAS 9.3 installed, I was able to use a libname statement where the Excel file was the library and

相关标签:
3条回答
  • 2021-01-19 16:36

    With SAS 9.4 or later 9.3 updates, you have another option: dbms=XLSX or dbms=XLS, both of which work regardless of bitness of office (As they're not using the JET engine or ACE engine). Still requre ACCESS to PC FILES, but they should work in mixed bitness systems.

    0 讨论(0)
  • 2021-01-19 16:37

    The problem is you need the 64 bit Excel libraries for 64 bit SAS to interact with.

    Chris Hemedinger posted a few work arounds to this issue as few years ago. http://blogs.sas.com/content/sasdummy/2012/05/01/64-bit-gotchas/

    If you have ACCESS/ODBC, another option is to create an ODBC connection to the Excel spreadsheet.

    0 讨论(0)
  • 2021-01-19 16:40

    If you can install SAS PC Files Server, you can still do this with the PCFILES destination. Installing the PC Files Server software is out of the scope of an answer here, but google about for instructions, they are readily available. You can install the PC Files Server on your desktop, or on a central server if that's more convenient for your workplace.

    Once you have it installed, you just access it by:

    libname mylib pcfiles path="blah\blah\blah.xlsx";
    

    Just like you did before, but with a different dbms type.

    0 讨论(0)
提交回复
热议问题