Getting rid of trailing spaces after a text (and also getting rid of a line that has no information.) data out2; set
out; eachline=trim(eachline); LEN=length(eachline); run; data _null_;set out2; counts=lengthn(eachline2); if
counts ne 0; file "&updated"; put (eachline) ($VARYING250. LEN); run;
Reading a text file as a data set with one variable (see below)