<?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: reduce log size in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882755#M348768</link>
    <description>&lt;P&gt;To tell you the truth, I wouldn't recommend reducing the log size at all. It contains useful information. You can turn off the macro debugging tools once you have finished debugging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would print the log to a file, and then the size is mostly irrelevant and it can be viewed by any text editor (which of course allows you to search for errors). Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="c:\yourfolder\whatever\program12.log" new;
run;
/* Your SAS code goes here */
proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 12:31:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-06-28T12:31:52Z</dc:date>
    <item>
      <title>reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882753#M348767</link>
      <description>&lt;P&gt;Hi I have some very big log file and I have already used&lt;/P&gt;
&lt;P&gt;options nocenter nodate nonumber nomlogic nosymbolgen;&lt;/P&gt;
&lt;P&gt;options notes=no;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what else can I add to reduce log size?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 08:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882753#M348767</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-06-28T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882755#M348768</link>
      <description>&lt;P&gt;To tell you the truth, I wouldn't recommend reducing the log size at all. It contains useful information. You can turn off the macro debugging tools once you have finished debugging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would print the log to a file, and then the size is mostly irrelevant and it can be viewed by any text editor (which of course allows you to search for errors). Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="c:\yourfolder\whatever\program12.log" new;
run;
/* Your SAS code goes here */
proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 12:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882755#M348768</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-28T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882802#M348800</link>
      <description>&lt;P&gt;Which particular entries in the log are offensive?&lt;/P&gt;
&lt;P&gt;Are you using PUT statements? - Remove them or comment them out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How large is your log that you find too big? 100 lines? 1000 lines? 100K lines?&lt;/P&gt;
&lt;P&gt;How many lines of code are in your program? Generally&amp;nbsp; if your program doesn't have any errors you typically get about 5 or 6 lines per procedure or datastep more than the actual code submitted. If you are getting much more than that I would say that you likely have problems with data or code than need to be addressed but would have to see examples with code and possibly data of where to start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nocenter, nodate and nonumber only affect output pages so have zero impact on log size.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882802#M348800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-28T14:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882874#M348835</link>
      <description>&lt;P&gt;I use proc export and it created lots of lines&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882874#M348835</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-06-28T23:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882895#M348847</link>
      <description>&lt;P&gt;If its code lines then I suggest turning NOTES on so you can see evidence of the step being run and SOURCE off to avoid all of the PUT statements in PROC EXPORT:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options notes nosource;

proc export......;
run;

options source;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 04:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882895#M348847</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-29T04:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882900#M348850</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I use proc export and it created lots of lines&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unless you have thousands of variables, this should not be a problem. You can reduce the size of such export code considerably by writing the step yourself and omitting unnecessary statements.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 07:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882900#M348850</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-29T07:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: reduce log size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882910#M348854</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I use proc export and it created lots of lines&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does this have to do with log size?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 09:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reduce-log-size/m-p/882910#M348854</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-29T09:35:29Z</dc:date>
    </item>
  </channel>
</rss>

