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 ??
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.