<?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 Re: Proc Printto not Appending to Log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410018#M279640</link>
    <description>&lt;P&gt;When you run in batch it's like running it in new session every time, so you get a separate log every time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you use PROC PRINTTO but point it to a text file? Does it append or replace the text file?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 21:17:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-02T21:17:08Z</dc:date>
    <item>
      <title>Proc Printto not Appending to Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410011#M279637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS documentation says that proc printto should allow appending to the log ("&lt;SPAN&gt;If you omit NEW, the new information is appended to the existing file.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried this and it doesn't work for me - log is just overwritten as usual:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc printto log=log;&amp;nbsp;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried specifying the path/filename in the log= statement too, but that doesn't work either (and is probably irrelevant).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Someone on a related&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Accumulating-logs-instead-of-overwriting-them/m-p/288746#M39299" target="_self"&gt;page&lt;/A&gt;&amp;nbsp;mentioned using a proc printto option called MOD that "allows appending instead of replacing," but that option isn't recognized by SAS as far as I can tell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Context: When I run macro 2 after running macro 1, I want macro 2's log to be appended to macro 1's log rather than overwriting it.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410011#M279637</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2017-11-02T21:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto not Appending to Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410013#M279638</link>
      <description>&lt;P&gt;What SAS set up are you using? SAS Base treats the log differently than EG/Studio and the documentation is likely referencing working with Base SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410013#M279638</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-02T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto not Appending to Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410016#M279639</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see. I'm running through batch mode in Unix.&amp;nbsp;I think I've googled this pretty extensively but can't find anything other than proc printto that's suitable for my purposes...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410016#M279639</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2017-11-02T21:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto not Appending to Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410018#M279640</link>
      <description>&lt;P&gt;When you run in batch it's like running it in new session every time, so you get a separate log every time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you use PROC PRINTTO but point it to a text file? Does it append or replace the text file?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410018#M279640</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-02T21:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Printto not Appending to Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410032#M279641</link>
      <description>&lt;P&gt;It appends - thanks so much for dealing with my ignorance!! This is extremely helpful for keeping the previous macro records.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 22:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Printto-not-Appending-to-Log/m-p/410032#M279641</guid>
      <dc:creator>sm4</dc:creator>
      <dc:date>2017-11-02T22:18:22Z</dc:date>
    </item>
  </channel>
</rss>

