DATA _NULL_ ;
INFILE txtin;
INPUT @1 xchr $1. @1 lnin $CHAR133.;
LENGTH lnut $134;
IF xchr=' ' then lnut=lnin;
ELSE IF xchr='0' then lnut=CATS('0A20'x, SUBSTR(lnin,2));
ELSE IF xchr='-' then lnut=CATS('0A0A20'x, SUBSTR(lnin,2));
ELSE IF xchr='1' then lnut=CATS('0C20'x, SUBSTR(lnin,2));
FILE txtut;
PUT lnut;
RUN; Not quite working. I'm losing centered titles and not all formfeeds are being inserted. Any thoughts?
... View more