2# jiagangw
jiagangw 前辈的代码真是精彩! 此致敬礼!
一直在想怎样通过一个DATA步实现,通过学习前辈代码,现在终于实现了:
data test;
infile "c:\files\test.txt" lrecl=400 dsd dlm="," truncover firstobs=2;
length temp $400;
input @ ;
temp=_infile_;
do while (length(compress(temp,'"','K')) < 20);
input;
input @;
temp= cats(temp,_infile_);
end;
_infile_=temp;
keep city--jieshou_flag;
input @1
city :$6.
quxian :$18.
yingyeting : $42.
staff_id : $10.
staff_name : $33.
SERIAL_NUMBER
RECOMM_DATE : $19.
yewu : $18.
qudao :$10.
jieshou_flag :$6.
;
run;