Hi folks -
I'm using SAS's learning tool and I've run into a problem when trying to access the XLSX engine.
I'm running: 9.4 TS LEVEL 1M5
Code:
options validvarname=v7;
libname NP XLSX "U:\My SAS Files\9.4\coursefiles\EPG1V2\data\np_info.xlsx";
Error I'm getting:
1 options validvarname=v7;
2 libname NP XLSX "U:\My SAS Files\9.4\coursefiles\EPG1V2\data\np_info.xlsx";
ERROR: The XLSX engine cannot be found.
ERROR: Error in the LIBNAME statement.
I checked to see if Interface to PC was licensed and installed:
---SAS/ACCESS Interface to PC Files
31JUL2023
For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M5
Any ideas?
@bphillips79 wrote:
Hi folks -
I'm using SAS's learning tool and I've run into a problem when trying to access the XLSX engine.
I'm running: 9.4 TS LEVEL 1M5
Code:
options validvarname=v7;
libname NP XLSX "U:\My SAS Files\9.4\coursefiles\EPG1V2\data\np_info.xlsx";
Error I'm getting:
1 options validvarname=v7;
2 libname NP XLSX "U:\My SAS Files\9.4\coursefiles\EPG1V2\data\np_info.xlsx";
ERROR: The XLSX engine cannot be found.
ERROR: Error in the LIBNAME statement.
I checked to see if Interface to PC was licensed and installed:
---SAS/ACCESS Interface to PC Files
31JUL2023For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M5
Any ideas?
Are you referring to SAS OnDemand for Academics or something else?
Hi Cynthia -
I realize I wasn't clear in my initial question. I'm using a SAS video training module and their provided files, but doing the activities on my local install. However, to your point about XLSX and PC File Formats, I think I have Interface to PC Files installed. That's what "For SAS/ACCESS Interface to PC Files ...
Custom version information: 9.4_M5" means, correct? And if I have do Interface to PC Files do I call PC Files or XLSX in my program?
Something else. I realize now I wasn't clear. I'm watching a SAS provided training video module and using the accompanying files they provided. But I'm doing so on my local machine install.
Run PROC PRODUCT_STATUS to see if everything is installed properly.
I did run that, and got a whole list of items. I posted in the lines regarding PC Files from licensing proc (I forget the syntax) and the product status. I didn't see anything about XLSX in either of the results though. Should I expect to see XLSX if it's licensed and/or installed?
If PRODUCT_STATUS shows ACCESS to PC Files as installed without issues, then you need to open a track with SAS technical support. The XLSX engine is part of that module.
I ended up submitting a ticket. Turns out I have 64 bit SAS and 32 bit MS Office.
@bphillips79 wrote:
I ended up submitting a ticket. Turns out I have 64 bit SAS and 32 bit MS Office.
Hm. From everything I know, the XLSX engine does not need any "external" software, so it should not be affected by the Office version installed (it also works on UNIX platforms, where there is no MS Office).
I suggest you try the EXCEL engine as well and post the results of this statement:
libname NP Excel "U:\My SAS Files\9.4\coursefiles\EPG1V2\data\np_info.xlsx";
This engine uses components of MS Office so that would need to be installed as well.
Talk to your local SAS support to find out why XLSX engine is not working. Or open a ticket with SAS Technical Support. https://support.sas.com/en/technical-support.html
You could always just open the XLSX file with a spreadsheet program and save the sheet as a delimited text file (such as a CSV). Then you can read the text file using a data step. There is no way the data step modules are not installed because then SAS wouldn't work at all.
I ended up opening a ticket. Discovered I had 64 bit SAS and 32 bit MS Office. Apparently they don't talk to each other unless they're the same.
@bphillips79 wrote:
I ended up opening a ticket. Discovered I had 64 bit SAS and 32 bit MS Office. Apparently they don't talk to each other unless they're the same.
That would only have an impact if you tried to use the EXCEL engine. The cause of your issue with the XLSX engine is something else.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.