<?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: Execution with &amp;quot;altlog&amp;quot; while disabling log in a job in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73976#M15968</link>
    <description>Peter,&lt;BR /&gt;
&lt;BR /&gt;
not having a log in certain situations is not my problem. The jobs are included in a loop so they are logged INTO the root job output and THIS log gets huge. So much for the details.&lt;BR /&gt;
&lt;BR /&gt;
Question still is how to store the (partially diabled) log output to a second directory without having -altlog ignore my proc print to dummy.&lt;BR /&gt;
&lt;BR /&gt;
I havent found anything in the documenation so far.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Thomas</description>
    <pubDate>Wed, 07 Apr 2010 10:58:53 GMT</pubDate>
    <dc:creator>ThomasH</dc:creator>
    <dc:date>2010-04-07T10:58:53Z</dc:date>
    <item>
      <title>Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73972#M15964</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am facing an issue I cant currently find a resolution for - maybe you know the trick?&lt;BR /&gt;
&lt;BR /&gt;
While executing a huge job I am partially disabling logging to avoid huge log files. This is done via&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;filename junk dummy;&lt;BR /&gt;
proc printto  log=junk; run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
and turned back on via&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;proc printto; run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Now the job is executed via &lt;BR /&gt;
&lt;BR /&gt;
sas -sysin test.sas&lt;BR /&gt;
&lt;BR /&gt;
It writes the log file as expected.&lt;BR /&gt;
&lt;BR /&gt;
Now I want to create an additonal log file to another directory with&lt;BR /&gt;
&lt;BR /&gt;
sas -sysin test.sas -altlog mylogfile&lt;BR /&gt;
&lt;BR /&gt;
but using this completely ignores the disabling of the log file in the job and suddenly the log gets very large.&lt;BR /&gt;
&lt;BR /&gt;
Is there another way to call the sas job or to disable the log to work in conjunction with -altlog?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot and cheers,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 07 Apr 2010 08:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73972#M15964</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2010-04-07T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73973#M15965</link>
      <description>only by writing less to the log.&lt;BR /&gt;
Why is it so large?</description>
      <pubDate>Wed, 07 Apr 2010 08:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73973#M15965</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-04-07T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73974#M15966</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
because it iterates multiple times through a set of jobs.&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 07 Apr 2010 08:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73974#M15966</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2010-04-07T08:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73975#M15967</link>
      <description>in most environments I have seen, multiple jobs each have their own SAS log. &lt;BR /&gt;
 &lt;BR /&gt;
No amount of "saved disk space" will solve the problem when something goes wrong. If anything should go wrong, you'll need all the diagnostics you can get! &lt;BR /&gt;
 &lt;BR /&gt;
If you are running SAS on a windows platform, enable file compression. Typically a SAS log will compress to a tenth of it's original size&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
PeterC</description>
      <pubDate>Wed, 07 Apr 2010 09:27:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73975#M15967</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-04-07T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73976#M15968</link>
      <description>Peter,&lt;BR /&gt;
&lt;BR /&gt;
not having a log in certain situations is not my problem. The jobs are included in a loop so they are logged INTO the root job output and THIS log gets huge. So much for the details.&lt;BR /&gt;
&lt;BR /&gt;
Question still is how to store the (partially diabled) log output to a second directory without having -altlog ignore my proc print to dummy.&lt;BR /&gt;
&lt;BR /&gt;
I havent found anything in the documenation so far.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 07 Apr 2010 10:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73976#M15968</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2010-04-07T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73977#M15969</link>
      <description>Alright, slowly getting there.&lt;BR /&gt;
&lt;BR /&gt;
Using something like&lt;BR /&gt;
options NOMPRINT;&lt;BR /&gt;
options NONOTES;&lt;BR /&gt;
options NOSYMBOLGEN;&lt;BR /&gt;
options NOOVP;&lt;BR /&gt;
options NOMFILE;&lt;BR /&gt;
options NOSOURCE;&lt;BR /&gt;
options NOSOURCE2;&lt;BR /&gt;
options NOMLOGIC;&lt;BR /&gt;
&lt;BR /&gt;
disables everything that is written to the log, except MPRINT - why? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Lines like these are left:&lt;BR /&gt;
&lt;BR /&gt;
MPRINT(ETLS_RECORDCHECK):   set work.etls_contents (obs = 1);&lt;BR /&gt;
MPRINT(ETLS_RECORDCHECK):   call symput("etls_recordsBefore", left(put(nobs,32.)));&lt;BR /&gt;
MPRINT(ETLS_RECORDCHECK):   run;&lt;BR /&gt;
MPRINT(ETLS_RECORDCHECK):   proc datasets lib = work nolist nowarn memtype = (data view);&lt;BR /&gt;
MPRINT(ETLS_RECORDCHECK):   delete etls_contents;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 07 Apr 2010 12:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73977#M15969</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2010-04-07T12:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73978#M15970</link>
      <description>probably some invoked macro or %included code includes&lt;BR /&gt;
option mprint ;&lt;BR /&gt;
&lt;BR /&gt;
If you only wish to avoid huge log files, then look at the LOGPARM option.&lt;BR /&gt;
With invocation option  -logparm "ROLLOVER=1M" the logfile is opened afresh when it becomes 1 megabyte.&lt;BR /&gt;
There are other options and values causing log roll over on change of date or time or different log file sizes.&lt;BR /&gt;
&lt;BR /&gt;
See SAS9.2 documentation of LOGPARM at&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002303556.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a002303556.htm&lt;/A&gt; and the links to this option on your platform &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and I would really encourage you to reinstate options NOTES and SOURCE, and unless "support" is really unneccessary, MPRINT.&lt;BR /&gt;
 &lt;BR /&gt;
hope it will help&lt;BR /&gt;
PeterC</description>
      <pubDate>Wed, 07 Apr 2010 12:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73978#M15970</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-04-07T12:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execution with "altlog" while disabling log in a job</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73979#M15971</link>
      <description>Hello Peter,&lt;BR /&gt;
&lt;BR /&gt;
thanks for the hint - there actually is a statement option mprint; used which I did not code but is inserted automatically into the code by DI Studio.&lt;BR /&gt;
&lt;BR /&gt;
%macro etls_setDebug; &lt;BR /&gt;
   %if %str(&amp;amp;etls_debug) ne 0 %then &lt;BR /&gt;
      OPTIONS MPRINT%str(;); &lt;BR /&gt;
%mend; &lt;BR /&gt;
&lt;BR /&gt;
Need to find out where this comes from &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
UPDATE for everyone with similar issues:&lt;BR /&gt;
%let etls_debug=0;&lt;BR /&gt;
in the autoexec file does the job&lt;BR /&gt;
&lt;BR /&gt;
Thank you!&lt;BR /&gt;
Thomas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ThomasH

Message was edited by: ThomasH</description>
      <pubDate>Wed, 07 Apr 2010 13:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Execution-with-quot-altlog-quot-while-disabling-log-in-a-job/m-p/73979#M15971</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2010-04-07T13:15:59Z</dc:date>
    </item>
  </channel>
</rss>

