3.reading Importing Raw Data Into Sas
3.reading Importing Raw Data Into Sas
3 F 4 21 25 7
3F3995
3 M 3 7 21 25
2 F 1 1 22 13
2 F 5 20 22 5
;
proc print;
run;
DATA outdata;
INPUT age gender $ dept obs1 obs2 obs
DATALINES;
1 F 3 17 6 24
The default delimiter is blank. If you have a data file with other delimiters
such as comma or tab you need to define the delimiter before defining the
variables using INFILEand DLM = options.
Syntax : Infile 'file-description' dlm=','
DBMS=dlm
REPLACE;
delimiter='09'x;
GETNAMES=YES;
RUN;