<?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: Clearing log window from CALL ECECUTE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42583#M8721</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
For this you can redirect your log to external file.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Proc printto log="&lt;I&gt;Give any file name with extension(.txt,.log.....)&lt;/I&gt;";&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Run this code before your macro executes.&lt;BR /&gt;
This will create an external file and your log information will be stored in that file.&lt;BR /&gt;
Later if you dont want this you can delete the file. Even you can keep this for furthur use.&lt;BR /&gt;
&lt;BR /&gt;
At the end you need to run this code&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
Proc printto;&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
To redirect the log from external file.&lt;BR /&gt;
&lt;BR /&gt;
Hope this will help you.</description>
    <pubDate>Wed, 10 Jun 2009 10:58:53 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-10T10:58:53Z</dc:date>
    <item>
      <title>Clearing log window from CALL ECECUTE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42579#M8717</link>
      <description>I have a macro which uses the CALL EXECUTE command to invoke macros from a DATA _NULL_ step.  To the best of my understanding, prior to the actual execution of each macro invocation, the log displays the generated code based on each invoked macro.  Since I have over 3000 invocations my log window fills up prior to execution.  This prompts a dialog box which asks if I want to clear/file the log window.  Since I have many files, each with 3000+ invocations, I would like to run this overnight without any user responses.&lt;BR /&gt;
&lt;BR /&gt;
Two questions:&lt;BR /&gt;
1 -- Is there a way to expand what can be stored in my log window so that the save/file request will not be issued?&lt;BR /&gt;
&lt;BR /&gt;
2 -- Is there code that will automatically clear the log during the generation of code?  I have a "dm 'log;clear;'" statement within the called macro which clears the log once execution begins, but not during the generation of code?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Mike&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 %macro run_prep_comdyn4( guild );&lt;BR /&gt;
    data _null_;&lt;BR /&gt;
       set c.&amp;amp;guild._final_ni_fi;&lt;BR /&gt;
       by state route year;&lt;BR /&gt;
     &lt;BR /&gt;
       if first.year then do;&lt;BR /&gt;
           call execute( '%a('||guild||','||state||','||route||','||year||')' );&lt;BR /&gt;
       end;&lt;BR /&gt;
&lt;BR /&gt;
     run;&lt;BR /&gt;
%mend run_prep_comdyn4;</description>
      <pubDate>Tue, 09 Jun 2009 15:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42579#M8717</guid>
      <dc:creator>mknowles</dc:creator>
      <dc:date>2009-06-09T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing log window from CALL ECECUTE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42580#M8718</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
Have you tried to reduce the log feedback by issuing:&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS NOMPRINT NONOTES NOSGEN NOMLOGIC;&lt;BR /&gt;
&lt;BR /&gt;
?&lt;BR /&gt;
&lt;BR /&gt;
Not sure, if it will cover the 300 invocations though.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Tue, 09 Jun 2009 16:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42580#M8718</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-06-09T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing log window from CALL ECECUTE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42581#M8719</link>
      <description>Since you want to run the program overnight, have you considered running the program in "batch mode," that is, from the command line, instead of via DMS? The log and listing output will be written to files and you won't have to worry about clearing the log window.</description>
      <pubDate>Tue, 09 Jun 2009 16:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42581#M8719</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-06-09T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing log window from CALL ECECUTE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42582#M8720</link>
      <description>Daniel,&lt;BR /&gt;
&lt;BR /&gt;
That did the trick.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Mike</description>
      <pubDate>Tue, 09 Jun 2009 18:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42582#M8720</guid>
      <dc:creator>mknowles</dc:creator>
      <dc:date>2009-06-09T18:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing log window from CALL ECECUTE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42583#M8721</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
For this you can redirect your log to external file.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Proc printto log="&lt;I&gt;Give any file name with extension(.txt,.log.....)&lt;/I&gt;";&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Run this code before your macro executes.&lt;BR /&gt;
This will create an external file and your log information will be stored in that file.&lt;BR /&gt;
Later if you dont want this you can delete the file. Even you can keep this for furthur use.&lt;BR /&gt;
&lt;BR /&gt;
At the end you need to run this code&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
Proc printto;&lt;BR /&gt;
run;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
To redirect the log from external file.&lt;BR /&gt;
&lt;BR /&gt;
Hope this will help you.</description>
      <pubDate>Wed, 10 Jun 2009 10:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Clearing-log-window-from-CALL-ECECUTE/m-p/42583#M8721</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-10T10:58:53Z</dc:date>
    </item>
  </channel>
</rss>

