<?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 Appending to an existing  .txt file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674676#M203178</link>
    <description>&lt;P&gt;hello&amp;nbsp; ..&amp;nbsp; i need to create the following layout&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;i would appreciate a solution on how to export append to an existing .txt file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GerdaNaude_0-1596621221447.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47991i4A4D48F23245EF04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GerdaNaude_0-1596621221447.png" alt="GerdaNaude_0-1596621221447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Gerda&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 09:54:06 GMT</pubDate>
    <dc:creator>GerdaNaude</dc:creator>
    <dc:date>2020-08-05T09:54:06Z</dc:date>
    <item>
      <title>Appending to an existing  .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674676#M203178</link>
      <description>&lt;P&gt;hello&amp;nbsp; ..&amp;nbsp; i need to create the following layout&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;i would appreciate a solution on how to export append to an existing .txt file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GerdaNaude_0-1596621221447.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47991i4A4D48F23245EF04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GerdaNaude_0-1596621221447.png" alt="GerdaNaude_0-1596621221447.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;Gerda&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674676#M203178</guid>
      <dc:creator>GerdaNaude</dc:creator>
      <dc:date>2020-08-05T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to an existing  .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674677#M203179</link>
      <description>&lt;P&gt;I think this will help you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/24/569.html" target="_blank"&gt;https://support.sas.com/kb/24/569.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 09:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674677#M203179</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-08-05T09:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to an existing  .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674701#M203191</link>
      <description>&lt;P&gt;How is the text file created in the first place?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674701#M203191</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-05T12:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to an existing  .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674714#M203194</link>
      <description>&lt;P&gt;Please provide more context on what you are actually doing.&lt;/P&gt;
&lt;P&gt;But the answer is the MOD option on the FILE statement.&amp;nbsp; It looks like your example photograph has three types of records. So write them with three data steps.&amp;nbsp; The first one excludes the MOD option and will remove any existing file and start a new one. The others use the MOD option and append to the existing file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file 'myfile.txt' dsd dlm='|';
  set have1;
  put (_all_) (+0);
run;
data _null_;
  file 'myfile.txt' dsd dlm='|' mod;
  set have2;
  put (_all_) (+0);
run;
data _null_;
  file 'myfile.txt' dsd dlm='|' mod;
  set have3;
  put (_all_) (+0);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 13:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674714#M203194</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-08-05T13:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending to an existing  .txt file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674765#M203223</link>
      <description>This is exactly what I’m looking for ..&lt;BR /&gt;I am very grateful .. thank you!</description>
      <pubDate>Wed, 05 Aug 2020 16:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-to-an-existing-txt-file/m-p/674765#M203223</guid>
      <dc:creator>GerdaNaude</dc:creator>
      <dc:date>2020-08-05T16:16:46Z</dc:date>
    </item>
  </channel>
</rss>

