How to import an excel file without xlsx or excel engine? Is there any alternative for it?
Save it as a .csv and then import the .csv.
If you're working in a Windows environment and need to automate things then you could write a vb script and call the vb script for saving the excel as .csv (if the SAS option is set to XCMD and not NOXCMD)
Hi Patrick,
Thanks for your response.
AFAIK, Libreoffice is available on Linux and can be run in batch mode from the commandline to do such conversions.
Hi @PSARAVANAN
Have you tried to run a proc import:
proc import datafile="&path/your_file.xlsx"
dbms=xlsx
out=work.mydata
replace;
sheet=/*put sheet name*/;
run;
@ed_sas_member wrote:
Hi @PSARAVANAN
Have you tried to run a proc import:
proc import datafile="&path/your_file.xlsx" dbms=xlsx out=work.mydata replace; sheet=/*put sheet name*/; run;
I think that the OP's problem is that they do not have ACCESS to PC Files licensed, so that won't work.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.