09-19-2013 05:46 AM
I've got a little problem with my proc import. Indeed, when I use the code below, it doesn't enable me to import .xlsx files, but only .xls
How could I change it to import both ?
Here's my code :
PROC IMPORT OUT=TRAVAIL.INPUTS_1_&Q&Y
09-19-2013 07:28 AM
You can convert the .xlsx file to .csv and using infile statement, you can easily get into sas environment without using proc import procedure.
09-19-2013 09:39 AM
Along yaswanthj line of thinking, you could even write sas code to convert your Excel file to a csv without using an import, and then read in the csv file.
09-19-2013 11:26 AM
the values for the DBMS options that you can use depend on your SAS version (including the "bitness", i.e. if you have 32bit or 64bit SAS).
If you have SAS 9.3 64bit maintenance release 1 (TS1M0), you can use either DBMS=XLS or DBMS=XLSX, but you have to decide which Excel format you want to support, since they are quite different.
If thats not possible, you probably have to go the CSV way like the other commentators suggested.