PROC IMPORT OUT= WORK.auto1 DATAFILE= "C:\Users\ 2-Feb-18.xlsx"
DBMS=xlsx REPLACE;
SHEET="auto";
GETNAMES=YES;
RUN;
I'm traying to import excel file and I got an error
ERROR: DBMS type XLSX not valid for import.
What I should do??
Yeah, you would need that 😞
https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/
@mona4u wrote:
I run
proc setinit;
run;
but I couldn't see SAS/ACCESS installed in my system.
Do you think that's the issue ??
Use a valid dbms engine:
http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003102096.htm
As you haven't provided any information its hard to say anything further. E.g. what operating system?
This would come from you providing the requested information. For instance, start with something simple like telling us what operating system you are on, Office (of which XLSX is part) does not exist for Linux/Unix systems - for those you would use pcfiles.
Next, tell us what software you are using, SAS University Edition works differently from desktop SAS, or server SAS.
I'm using
windows 10 pro
system type 64-bit
SAS 9.4
I use the server and Excel 2016
If you're using SAS 9.4 you should have XLSX engine by default. Something else is the issue then.
Check with others in your company if the code works on their system.
And post your full log and error message, that may contain more information.
I run
proc setinit;
run;
but I couldn't see SAS/ACCESS installed in my system.
Do you think that's the issue ??
Yeah, you would need that 😞
https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/
@mona4u wrote:
I run
proc setinit;
run;
but I couldn't see SAS/ACCESS installed in my system.
Do you think that's the issue ??
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!
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.