i think this code :
data _null_
infile '/path/temp.txt" end=eof;
input ;
if _n_>1 then do;
if countw(_infile_,'|','mq') > 3 then put / @;
else put ' ' @;
end;
put _infile_ @;
if eof then put;
run;
truncuates the "notes" field at some point but dont undrstand why.
I have attached a few records and the 1st record is trunctated at the "150%" and along with it the 21th field is assigned a missing value
whereas the second record is appended properly.
Also the 3rd record which is longer than the 1st is read in properly
... View more