Hi
I have a raw file with the following layout
"GERI"|""|"09/03/09"|"MA3"|"09/03/09"|""|""|""|""|"19/03/09"
I woulid like to import the data directly into a data set by using infile. I wrote the following code but was unsuccessfull. data raw;
infile 'test' DLM='|' DSD MISSOVER;
input var1 $4 var2 $4 var3 ddmmyy10. var4 $3 var5 ddmmyy10.
var6-var10 ddmmyy10.;
run;
In the output I keep getting the fields in the worng columns and some actually get imported with the delimiter and the quotation.
"GER |"09/03 MA3 . . . . . . . . . |"19/03
Any suggestions?
Thanks
I have a raw file with the following layout
"GERI"|""|"09/03/09"|"MA3"|"09/03/09"|""|""|""|""|"19/03/09"
I woulid like to import the data directly into a data set by using infile. I wrote the following code but was unsuccessfull. data raw;
infile 'test' DLM='|' DSD MISSOVER;
input var1 $4 var2 $4 var3 ddmmyy10. var4 $3 var5 ddmmyy10.
var6-var10 ddmmyy10.;
run;
In the output I keep getting the fields in the worng columns and some actually get imported with the delimiter and the quotation.
"GER |"09/03 MA3 . . . . . . . . . |"19/03
Any suggestions?
Thanks