<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS output is showing a blank row after Footer in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-output-is-showing-a-blank-row-after-Footer/m-p/640648#M21753</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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',&amp;amp;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',&amp;amp;run_date.,&amp;amp;obs.;
put lbl @;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Apr 2020 09:21:49 GMT</pubDate>
    <dc:creator>Trishjais</dc:creator>
    <dc:date>2020-04-17T09:21:49Z</dc:date>
    <item>
      <title>SAS output is showing a blank row after Footer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-output-is-showing-a-blank-row-after-Footer/m-p/640648#M21753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;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',&amp;amp;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',&amp;amp;run_date.,&amp;amp;obs.;
put lbl @;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 09:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-output-is-showing-a-blank-row-after-Footer/m-p/640648#M21753</guid>
      <dc:creator>Trishjais</dc:creator>
      <dc:date>2020-04-17T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS output is showing a blank row after Footer</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-output-is-showing-a-blank-row-after-Footer/m-p/640819#M21764</link>
      <description>&lt;P&gt;SAS does NOT write any extra lines at the end of text files.&amp;nbsp; Each line consists of characters followed by the end of line character(s). Which is the standard format for text files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are looking at the file in an editor then the editor is displaying an extra line so you have some place to start appending new lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or what ever program you are using to read the file is misinterpreting the end of line character(s) in the file as if they were "record" delimiters.&amp;nbsp; Check with the manuals for that program whether they have an option to let them process normal text files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples of other users that have been stuck with using such misguided programs.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Text-File-Output-Node-generating-extra-line-at-end-of-file/td-p/491759" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Data-Management/Text-File-Output-Node-generating-extra-line-at-end-of-file/td-p/491759&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Don-t-insert-blank-line-in-csv-file/m-p/130525#M10764" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Don-t-insert-blank-line-in-csv-file/m-p/130525#M10764&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/35463015/prevent-final-lf-crlf-when-writing-a-text-file/35464019#35464019" target="_blank"&gt;https://stackoverflow.com/questions/35463015/prevent-final-lf-crlf-when-writing-a-text-file/35464019#35464019&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 19:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-output-is-showing-a-blank-row-after-Footer/m-p/640819#M21764</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-17T19:36:40Z</dc:date>
    </item>
  </channel>
</rss>

