OK I am just embarking on SAS so this is at a very low level.
I'm trying to import an excel file into SAS but keep getting an error relating to the DBMS line
'ERROR: DBMS type EXCEL not valid for import.'
The book I'm using suggests this
PROC IMPORT DATAFILE="C:\SAS Data\disk\data\tnfdata.xls"
OUT=tnfdata
DBMS = excel97
REPLACE;
SHEET="TNFdata";
GETNAMES=YES;
PROC PRINT DATA=tnfdata;
but I keep getting 'ERROR: DBMS type EXCEL97 not valid for import.'
I have tried changing the Excel 97 to 2000, 2002, 2003, 03, leaving ity out, XLS and still geep getting the same type of error. What the hell am I doing wrong with this. From looking on the net, the sytax suggested in the book should work but fails on my copy.
I'm trying to import an excel file into SAS but keep getting an error relating to the DBMS line
'ERROR: DBMS type EXCEL not valid for import.'
The book I'm using suggests this
PROC IMPORT DATAFILE="C:\SAS Data\disk\data\tnfdata.xls"
OUT=tnfdata
DBMS = excel97
REPLACE;
SHEET="TNFdata";
GETNAMES=YES;
PROC PRINT DATA=tnfdata;
but I keep getting 'ERROR: DBMS type EXCEL97 not valid for import.'
I have tried changing the Excel 97 to 2000, 2002, 2003, 03, leaving ity out, XLS and still geep getting the same type of error. What the hell am I doing wrong with this. From looking on the net, the sytax suggested in the book should work but fails on my copy.

). The INPUT statement allows you to read from csv and the PUT statement writes csv files.
Comment