DATA Step, Macro, Functions and more

Import XLSX file

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 149
Accepted Solution

Import XLSX file

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??


Accepted Solutions
Solution
‎02-15-2018 11:13 AM
Super User
Posts: 23,237

Re: Import XLSX file

Yeah, you would need that Smiley Sad

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 ??  


 

View solution in original post


All Replies
Super User
Super User
Posts: 9,401

Re: Import XLSX file

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?

Frequent Contributor
Posts: 149

Re: Import XLSX file

how to know the name of dbms in my system??
Super User
Super User
Posts: 9,401

Re: Import XLSX file

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.

Frequent Contributor
Posts: 149

Re: Import XLSX file

[ Edited ]

I'm using 

windows 10 pro 

system type 64-bit 

 

SAS 9.4 

 

I use the server and Excel 2016

Super User
Posts: 23,237

Re: Import XLSX file

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.

 

 

Frequent Contributor
Posts: 149

Re: Import XLSX file

I run 

proc setinit;

run; 

 

but I couldn't see SAS/ACCESS  installed in my system. 

Do you think that's the issue ??  

Solution
‎02-15-2018 11:13 AM
Super User
Posts: 23,237

Re: Import XLSX file

Yeah, you would need that Smiley Sad

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 ??  


 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 118 views
  • 0 likes
  • 3 in conversation