the problem is that we run SAS on a unix box, so the put statement is not win formatted.
i know this probably looks strange to you SAS pros (im only a few years into sas coding - and not an every day thing)
but this JUST about worked... it still has an odd CR here and there but at least notepad opens the resulting file and it looks good.
DATA _NULL_;
SET RAWREC1 ;
FILE "/home/xxxxxx/check_output/&FILENAME" LS=140 NOPRINT;
TMP = 'NC(Y/N)' || '0D0A'x || ' NC VALIDATED?' || '0D'x;
IF _N_ = 1 THEN DO ;
PUT TMP;
END ;
S=INDEX(Line1,'0D'X);
IF S > 0 THEN SUBSTR(Line1,S,1)='';
S=INDEX(Line1,'0A'X);
IF S > 0 THEN SUBSTR(Line1,S,1)='';
A = NC || ' ' || NCVAL;
PUT
@1 A
@5 Line1 $CHAR133.
@138 '0D'x;
RUN ;