My first quesion: After I imported the datafile, I wrote PROC IMPORT DATAFILE= 'D:\sasprogramming\EX1.xls' OUT= EX1 DBMS=xls REPLACE ; GETNAMES= yes; RUN; options FIRSTOBS =2; then the output data will read the data from the third row, but even if I delete this statement (OPTION FIRSTOBS=2), and re-run the import statement, the SAS will still read the datafile from the third row, then how could I eliminate the effet of the option statement? The second question: My data looks like: the variables are in the second row, If I use the following codes: PROC IMPORT DATAFILE= 'D:\sasprogramming\EX1.xls' OUT= EX1
DBMS=xls REPLACE ;
GETNAMES= yes;
RUN; the headline of the output will be A B C D..., Apprently SAS threat the A B C D as the variables. then if I add options FIRSTOBS =2; SAS will read the data from the third line, then the variables id, dates....will disappear, so if I want to read the second row as my varibles, what I can do?
... View more