<?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: SAS_Clean Log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599070#M172855</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122878"&gt;@Khaladdin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use PROC PRINTTO to &lt;EM&gt;discard&lt;/EM&gt; the log.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename nirvana dummy;
proc printto log=nirvana;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Oct 2019 15:15:00 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2019-10-24T15:15:00Z</dc:date>
    <item>
      <title>SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599064#M172850</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset with a comprehensive cleaning code. The code works well and pretty fast. The only issue is it creates a huge amount of log file (more than 500 GB). As a first step, I decided to use&amp;nbsp; proc printto and save log file in my hard disk. However, as I said, even log file became more than 500 GB. Thus, I need something which prevents SAS to create any information in the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599064#M172850</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2019-10-24T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599068#M172853</link>
      <description>&lt;P&gt;See if this gives you some info you can use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=basess&amp;amp;docsetTarget=p0rgzxi5r1euj0n14epck6v9l2hm.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1oty05x9ou8jyn1ua6ruphucmrd" target="_self"&gt;Suppressing Information in the SAS Log&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:12:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599068#M172853</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-24T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599070#M172855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122878"&gt;@Khaladdin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use PROC PRINTTO to &lt;EM&gt;discard&lt;/EM&gt; the log.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename nirvana dummy;
proc printto log=nirvana;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599070#M172855</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-10-24T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599077#M172859</link>
      <description>&lt;P&gt;Just out of curiosity, what are you printing to the log? Is it only the default notes from the procedures or have you specified additional information to print?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599077#M172859</guid>
      <dc:creator>noling</dc:creator>
      <dc:date>2019-10-24T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599078#M172860</link>
      <description>Actually, it is just the default notes from the procedures. I have run the same code previously. It has never printed anything like that. I am using the same type of data, however, with large size. It now starts to print a large log. I do not know the reason actually.</description>
      <pubDate>Thu, 24 Oct 2019 15:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599078#M172860</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2019-10-24T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599079#M172861</link>
      <description>I am currently trying this. Will let you know once I have the result.</description>
      <pubDate>Thu, 24 Oct 2019 15:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599079#M172861</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2019-10-24T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599101#M172869</link>
      <description>&lt;P&gt;Interesting. I'd think you'd have to be running 1000's of procedures to generate a 500GB log. I'd examine the log to see if there is any unexpected output. 500GB is alarming.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 16:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599101#M172869</guid>
      <dc:creator>noling</dc:creator>
      <dc:date>2019-10-24T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599121#M172882</link>
      <description>&lt;P&gt;Agree, I'd look at the log and see what's going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've never in my life had enough confidence in a SAS program to feel good about the idea of sending a log to nirvana.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if you have the perfect program, there's too much opportunity to something to go wrong with your data, or network, or .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 500GB log sounds like something may have gone horribly wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599121#M172882</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-10-24T18:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599127#M172885</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122878"&gt;@Khaladdin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't say anything about your setup, and if you are running your job locally I have no good ideas. But in a client/server somebody could have made changes that to the SAS installation, that can make the log explode, if you are running many steps, e.g. with a macro loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at the log options and see if mprint, mlogic, symbolgen or source2 are enabled. And check&amp;nbsp;ARM logging. After an upgrade we had ARM logging and mprint enabled, and out logs exploded with a factor 10 or more.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 19:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599127#M172885</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-10-24T19:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599246#M172935</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your comments.&lt;/P&gt;&lt;P&gt;I have looked at the log. The log file does not show any error. However, it automatically copies all my data into the log file as a text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 07:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599246#M172935</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2019-10-25T07:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599250#M172937</link>
      <description>&lt;P&gt;It works. As suggested by other contributors, it is a bit dangerous to send all log to nirvana. However, I have checked my cleaned data and everything is perfect.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 07:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599250#M172937</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2019-10-25T07:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599308#M172979</link>
      <description>&lt;P&gt;Try this option . EDITED&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options notes=no source=no source2=no;

data have;
set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Oct 2019 12:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599308#M172979</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-25T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_Clean Log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599315#M172984</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122878"&gt;@Khaladdin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your comments.&lt;/P&gt;
&lt;P&gt;I have looked at the log. The log file does not show any error. However, it automatically copies all my data into the log file as a text.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS does NOT automatically copy your data to the log.&amp;nbsp; Even if you have in-line data SAS does not echo that data to the log.&lt;/P&gt;
&lt;PRE&gt;646  data test;
647    input x;
648  cards;

NOTE: The data set WORK.TEST has 3 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.09 seconds
      cpu time            0.02 seconds

652  ;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Oct 2019 13:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Clean-Log/m-p/599315#M172984</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-25T13:04:01Z</dc:date>
    </item>
  </channel>
</rss>

