Hi,
I am outputting 2 datasets into a pipe delimited txt file, the problem is I'm getting an additional empty row at the last line after the footer, I'm using following code, Please help.
options nobomfile missing='';
filename rec "/folder1/folder2/file..txt"
mod encoding= 'UTF-8';
data _null_;
file rec notitle dsd delimiter='|';
length lbl $200;
if _n_=1 then do;
do lbl='HD','supplier',&run_date.,'1.0','0','';
put lbl @;
end;
put;
end;
do until(eof);
set have1 end=eof;
put ID1-ID123;
end;
run;
data _null_;
file rec notitle dsd delimiter='|';
length lbl $200;
set have2 end=eof;
put CC1-CC143;
if eof then do lbl= 'FT','supplier',&run_date.,&obs.;
put lbl @;
end;
run;