BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mona4u
Lapis Lazuli | Level 10

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

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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


 

View solution in original post

7 REPLIES 7
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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?

mona4u
Lapis Lazuli | Level 10
how to know the name of dbms in my system??
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

mona4u
Lapis Lazuli | Level 10

I'm using 

windows 10 pro 

system type 64-bit 

 

SAS 9.4 

 

I use the server and Excel 2016

Reeza
Super User

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.

 

 

mona4u
Lapis Lazuli | Level 10

I run 

proc setinit;

run; 

 

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

Do you think that's the issue ??  

Reeza
Super User

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


 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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