Unable to import xlsx file using PROC IMPORT. I tried to use DBMS = xlsx on SAS 9.4 M7.
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;
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.
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;
@441418 wrote:
Unable to import xlsx file using PROC IMPORT. I tried to use DBMS = xlsx on SAS 9.4 M7.
Open the file in question with Excel or other office software to see if it is valid.
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!
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.
Ready to level-up your skills? Choose your own adventure.