I am trying to import a 2007 MS Excel
into SAS
. I use SAS 9.2.
with the Acces
module for PC file already installed. I used the next code:
proc import datafile = 'C:\saspractica\Excel.xlsx' out= work.auto1 dbms = excel REPLACE;
sheet = 'auto';
GETNAMES = YES;
run;
Nevertheless, SAS
shows me the next message:
ERROR: Connect: external table does not have expected format. ERROR: Error in the LIBNAME statement. Connection Failed. See log for details. NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE IMPORT used (Total process time): real time 0.21 seconds cpu time 0.14 seconds
I have checked the code and changed dbms = xlsx
to dbms=excel
. However, the error message continues... Thanks for your time and help.