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

Unable to import xlsx file using PROC IMPORT. I tried to use DBMS = xlsx on SAS 9.4 M7.

441418_0-1680279840464.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CodeName
Calcite | Level 5

Use SAS/ACCESS Interface to OLEDB
In SAS/ACCESS interface to OLEDB, you can submit the following code to create or read an .xlsx file with Microsoft office 2007 OLEDB

libname LibTest oledb init_string="Provider=Microsoft.ACE.OLEDB.12.0;
data source='C:\Excelfiles\Air.xlsx';
extended Properties=Excel 12.0";

data Test;
set LibTest.'Air3'n;
run;

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Don't attach files.  If you want to share text click on the Insert Code icon and paste the text into the pop-up window.  It you want to attach an image you can paste it into the normal editor box.  Or click on the Insert Photos icon and either drag it there or browse to the file and select it.

CodeName
Calcite | Level 5

Use SAS/ACCESS Interface to OLEDB
In SAS/ACCESS interface to OLEDB, you can submit the following code to create or read an .xlsx file with Microsoft office 2007 OLEDB

libname LibTest oledb init_string="Provider=Microsoft.ACE.OLEDB.12.0;
data source='C:\Excelfiles\Air.xlsx';
extended Properties=Excel 12.0";

data Test;
set LibTest.'Air3'n;
run;

Kurt_Bremser
Super User

@441418 wrote:

Unable to import xlsx file using PROC IMPORT. I tried to use DBMS = xlsx on SAS 9.4 M7.

441418_0-1680279840464.png

 

 


Open the file in question with Excel or other office software to see if it is valid.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1185 views
  • 0 likes
  • 4 in conversation