I am trying to import a excel file to a dataset using SAS, however the regular approach:
PROC IMPORT OUT= test.test
DATAFILE= "M:/excelfile.xls"
DBMS=EXCEL REPLACE;
SHEET="Sheet1";
GETNAMES=YES;
MIXED=NO;
SCANTEXT=YES;
USEDATE=YES;
SCANTIME=YES;
RUN;
only works on Windows.
Im using SAS 9.2 .. I tried different DBMS like XLS, EXCELCS with no luck…
I’ve been investing a lot of time on this I wanted to know if is possible..
I don’t have access to any other languages other than SAS ans SHELL (no PERL)
Is there anyway to accomplish what I’m looking for?
These are the installed base products
Operating System: AIX 64
—Base Product
—SAS/STAT
—SAS/GRAPH
—SAS/ETS
—SAS/OR —SAS/CONNECT
—SAS Integration Technologies
—OR OPT
—OR PRS
—OR IVS
—OR LSO
—SAS/ACCESS Interface to DB2
I know this is late but for the record you should be able to import an xlsx (XML Excel data sheet) with SAS using the XML data engine and a custom XMLMAP which is provided by SAS support.
See the paper here http://www2.sas.com/proceedings/sugi31/115-31.pdf for details of how to do this and where to get the XMLmap from.