BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
nab102
Fluorite | Level 6

Hello, 

I'm having trouble importing xlsx file and I keep getting this error "ERROR: DBMS type XLSX not valid for import." . Can someone help?

 

proc import datafile="path\Data.xlsx"
dbms=xlsx out=dm replace;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

So you do not have SAS/ACCESS to PC Files installed. Run PROC SETINIT to check if it is also not licensed (most probably).

Save your spreadsheet as a CSV file, and read it with a data step.

View solution in original post

5 REPLIES 5
Tom
Super User Tom
Super User

Install a new version of SAS?

https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-so...

 

 

To check the version of SAS you are running check the macro variable SYSVLONG.  To check what is installed use PROC PRODUCT_STATUS.

 

I know XLSX engine works with this 4.5 year old version of SAS (which does have SAS/Access to PC Files installed).

79   %put &=sysvlong;
SYSVLONG=9.04.01M5P091317
80
81
82   proc product_status;
83   run;

For Base SAS Software ...
   Custom version information: 9.4_M5
   Image version information: 9.04.01M5P090617
...
For SAS/ACCESS Interface to PC Files ...
   Custom version information: 9.4_M5
...

 

nab102
Fluorite | Level 6
This is my version
149 %put &=sysvlong;
SYSVLONG=9.04.01M7P080520


For Base SAS Software ...
Custom version information: 9.4_M7
Image version information: 9.04.01M7P080520
For SAS/STAT ...
Custom version information: 15.2
For SAS/GRAPH ...
Custom version information: 9.4_M7
For SAS/IML ...
Custom version information: 15.2
For High Performance Suite ...
Custom version information: 2.2_M8
For SAS/ACCESS Interface to ODBC ...
Custom version information: 9.4_M7


Kurt_Bremser
Super User

So you do not have SAS/ACCESS to PC Files installed. Run PROC SETINIT to check if it is also not licensed (most probably).

Save your spreadsheet as a CSV file, and read it with a data step.

nab102
Fluorite | Level 6
I already converted the files from xlsx to csv but I had multiple files in the xlsx files in one excel worksheet so I thought there was going to be an easier way to do that. Thanks
nab102
Fluorite | Level 6
Thank you

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 5 replies
  • 6344 views
  • 1 like
  • 3 in conversation