<?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 How to clear SAS logs automatically? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58884#M16562</link>
    <description>Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
How can I clear the SAS logs automatically so I don't have to sit at my desk to click the "Clear" option on the message window everytime the logs get full?&lt;BR /&gt;
&lt;BR /&gt;
I've tried the following but still the windows keep coming up for me to choose either of the options.&lt;BR /&gt;
&lt;BR /&gt;
filename templog "C:\Research\DataCollection\tempsaslog.txt";&lt;BR /&gt;
proc printto log templog;&lt;BR /&gt;
&lt;BR /&gt;
 "my program code"&lt;BR /&gt;
&lt;BR /&gt;
proc printto log = log;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Can you please advise?</description>
    <pubDate>Thu, 28 Apr 2011 00:06:12 GMT</pubDate>
    <dc:creator>smilingmelbourne</dc:creator>
    <dc:date>2011-04-28T00:06:12Z</dc:date>
    <item>
      <title>How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58884#M16562</link>
      <description>Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
How can I clear the SAS logs automatically so I don't have to sit at my desk to click the "Clear" option on the message window everytime the logs get full?&lt;BR /&gt;
&lt;BR /&gt;
I've tried the following but still the windows keep coming up for me to choose either of the options.&lt;BR /&gt;
&lt;BR /&gt;
filename templog "C:\Research\DataCollection\tempsaslog.txt";&lt;BR /&gt;
proc printto log templog;&lt;BR /&gt;
&lt;BR /&gt;
 "my program code"&lt;BR /&gt;
&lt;BR /&gt;
proc printto log = log;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Can you please advise?</description>
      <pubDate>Thu, 28 Apr 2011 00:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58884#M16562</guid>
      <dc:creator>smilingmelbourne</dc:creator>
      <dc:date>2011-04-28T00:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58885#M16563</link>
      <description>I think you might have your code in the wrong order.&lt;BR /&gt;
proc printto goes before your sas program statements or you're missing an equal sign.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The following code redirects my log in SAS 9.2 (from the documentation).&lt;BR /&gt;
&lt;BR /&gt;
*set log to temp file;&lt;BR /&gt;
filename myfile 'c:\temp\mylog.log';&lt;BR /&gt;
proc printto log=myfile;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
*reset log output;&lt;BR /&gt;
proc printto;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 28 Apr 2011 00:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58885#M16563</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-04-28T00:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58886#M16564</link>
      <description>if you have fully debugged your code, you could add the following option to suppress much of the log output:&lt;BR /&gt;
&lt;BR /&gt;
options nosource nonotes;  You will still get warnings and error messages.</description>
      <pubDate>Thu, 28 Apr 2011 13:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58886#M16564</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-04-28T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58887#M16565</link>
      <description>If you are using F8 or other key to submit your job, you could change the entry in the KEYS menu item to: Log;clear;submit;log;&lt;BR /&gt;
&lt;BR /&gt;
This will clear the log before each program submitted.</description>
      <pubDate>Thu, 28 Apr 2011 17:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58887#M16565</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-04-28T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58888#M16566</link>
      <description>Wow, that's so wonderful! Thank you all for the help. Now I know several ways to clear the SAS logs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 29 Apr 2011 06:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/58888#M16566</guid>
      <dc:creator>smilingmelbourne</dc:creator>
      <dc:date>2011-04-29T06:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/302390#M60705</link>
      <description>&lt;P&gt;Where do I find the Keys menu?? I am using SAS studio edition&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/302390#M60705</guid>
      <dc:creator>bluemountains</dc:creator>
      <dc:date>2016-10-04T16:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear SAS logs automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/302435#M60706</link>
      <description>&lt;P&gt;There is no KEYS window in SAS Studio as function keys are not customisable.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-clear-SAS-logs-automatically/m-p/302435#M60706</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-10-04T18:48:12Z</dc:date>
    </item>
  </channel>
</rss>

