<?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: Writing to the same log file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Writing-to-the-same-log-file/m-p/284121#M57960</link>
    <description>&lt;P&gt;You actually have two problems to solve.&amp;nbsp; You also have to ensure that program A completes before program B begins.&amp;nbsp; The easiest way to do that is to create program C to run both A then B:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include 'program_a.sas';&lt;/P&gt;
&lt;P&gt;%include 'program_b.sas';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other approaches that involve PROC PRINTTO, but %INCLUDE should be easiest and safest.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2016 17:00:44 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-07-13T17:00:44Z</dc:date>
    <item>
      <title>Writing to the same log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-to-the-same-log-file/m-p/284102#M57952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have two sas programs both are trying to write the log to same external file in succession. First program A will write to the log file and then program B has to append its log to the same external file. Please suggest me a way to do so.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-to-the-same-log-file/m-p/284102#M57952</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-07-13T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Writing to the same log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Writing-to-the-same-log-file/m-p/284121#M57960</link>
      <description>&lt;P&gt;You actually have two problems to solve.&amp;nbsp; You also have to ensure that program A completes before program B begins.&amp;nbsp; The easiest way to do that is to create program C to run both A then B:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include 'program_a.sas';&lt;/P&gt;
&lt;P&gt;%include 'program_b.sas';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other approaches that involve PROC PRINTTO, but %INCLUDE should be easiest and safest.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 17:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Writing-to-the-same-log-file/m-p/284121#M57960</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-07-13T17:00:44Z</dc:date>
    </item>
  </channel>
</rss>

