<?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: Log window and external file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230941#M41958</link>
    <description>&lt;P&gt;As I said, the ALTLOG option creates both the SASLOG in the LOG window, and a text file containing the SASLOG.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 13:41:55 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-10-21T13:41:55Z</dc:date>
    <item>
      <title>Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230899#M41949</link>
      <description>&lt;P&gt;Is there a way to have the log information appear in the log window&amp;nbsp;and have it output to an external text file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 12:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230899#M41949</guid>
      <dc:creator>tstjean</dc:creator>
      <dc:date>2015-10-21T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230911#M41952</link>
      <description>&lt;P&gt;You can always save the LOG window to a text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the ALTLOG option to cause this to happen automatically.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 12:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230911#M41952</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-21T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230914#M41953</link>
      <description>&lt;P&gt;Hi mate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS Log appears as standard in SAS Softwares, but in Enterprise Guide, if you need to&lt;/P&gt;
&lt;P&gt;see the whole SAS Log history,&amp;nbsp;you need to go to the process flow, click on project log and&lt;/P&gt;
&lt;P&gt;click turn on to store the history of SAS Log in that session.&lt;/P&gt;
&lt;P&gt;If you need to export the SAS Log use the&amp;nbsp;&lt;A title="proc printto" href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146809.htm" target="_blank"&gt;proc printto&lt;/A&gt;&amp;nbsp;or export by point-and-clicking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log='use_a_macro_to_get_the_log_automatically.log';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need this to happen automatically, then put this code into insert custom code after&lt;/P&gt;
&lt;P&gt;submitted code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Att&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 12:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230914#M41953</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-10-21T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230934#M41956</link>
      <description>&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the suggestions.&lt;/P&gt;&lt;P&gt;A little more detail from me would have helped.&lt;/P&gt;&lt;P&gt;I'm looking for a programmatic way to save the log file to an external text file.&lt;/P&gt;&lt;P&gt;And, if it is run interactively, to have the log also show in the log window.&lt;/P&gt;&lt;P&gt;I don't know if I can have my cake and eat it too by having the log automatically&amp;nbsp;go to a text file and display in the log window.&lt;/P&gt;&lt;P&gt;From what I've read, it's one or the other.&lt;/P&gt;&lt;P&gt;Is this correct or can I have the log go to the window and a text file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230934#M41956</guid>
      <dc:creator>tstjean</dc:creator>
      <dc:date>2015-10-21T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230941#M41958</link>
      <description>&lt;P&gt;As I said, the ALTLOG option creates both the SASLOG in the LOG window, and a text file containing the SASLOG.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230941#M41958</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-21T13:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230942#M41959</link>
      <description>&lt;P&gt;Jean, a sas code to do this is the proc printto like i said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this link:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001330273.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001330273.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Att&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/230942#M41959</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-10-21T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231025#M41983</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@DartibaliRodrigo wrote:&lt;BR /&gt;
&lt;P&gt;Jean, a sas code to do this is the proc printto like i said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this link:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001330273.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001330273.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Att&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This does not meet the requirements stated. You don't get the log in BOTH the LOG window and in a text file. You only get the log in a text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ALTLOG option does meet the requirements.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 18:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231025#M41983</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-21T18:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231033#M41984</link>
      <description>&lt;P&gt;I find it easier to run SAS programs in batch mode if I want a LOG file as it gets produced automatically. That way no code changes are required.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 19:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231033#M41984</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-21T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Log window and external file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231042#M41986</link>
      <description>&lt;P&gt;Agree with the altlog suggestion.&amp;nbsp; If you're on PC SAS, you can also use DM commands to copy the log to a file, e.g. :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;dm "log; file ""%sysfunc(pathname(work))/__mylog.log"" replace;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will write the contents of the log window to a file named __mylog.log in your work directory.&amp;nbsp; I do this for quick log scanning during interactive sessions.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 19:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-window-and-external-file/m-p/231042#M41986</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-10-21T19:57:13Z</dc:date>
    </item>
  </channel>
</rss>

