<?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 LOG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322916#M71508</link>
    <description>&lt;P&gt;The SAS log is created by SAS when you execute it - it's part of the product. You can to a certain degree influence the level of logging via a whole set of options like NOTES SOURCE SYMBOLGEN FULLSTIMER etc. etc.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2017 08:57:47 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-01-06T08:57:47Z</dc:date>
    <item>
      <title>SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322904#M71500</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope all are doing great. Have a great day...!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding SAS Log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had come across certain ways of reading and creating external SAS LOG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question here is from where do NOTE, ERROR and WARNING are being obtained and printed in SAS LOG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;We can see in LOG window message "NOTE: There are xxx no of observation read from yy.zzz dataset.&lt;/P&gt;&lt;P&gt;so, from where this information is coming to LOG window. Similarly, for others like ERROR, WARNING and other related log messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time in reading my post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322904#M71500</guid>
      <dc:creator>bubblui</dc:creator>
      <dc:date>2017-01-06T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322905#M71501</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry,&amp;nbsp;not clear for me what you are looking for...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by "&lt;EM&gt;where this information is comming from&lt;/EM&gt;"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;it's just a matter of disabling those messages, check the following note:&amp;nbsp;&lt;A href="http://support.sas.com/kb/24/487.html" target="_blank"&gt;http://support.sas.com/kb/24/487.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322905#M71501</guid>
      <dc:creator>Daniel-Santos</dc:creator>
      <dc:date>2017-01-06T08:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322911#M71505</link>
      <description>&lt;P&gt;I guess, Creating external log means that you want to print log information to external file, here is the sample code to do this,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC PRINTTO PRINT='c:\auto.lst' NEW;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Regarding printing details(eg: WARNING, ERROR, NOTE) in log,&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121751"&gt;@Daniel-Santos&lt;/a&gt;suggested one link, you can change that paramters.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322911#M71505</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2017-01-06T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322916#M71508</link>
      <description>&lt;P&gt;The SAS log is created by SAS when you execute it - it's part of the product. You can to a certain degree influence the level of logging via a whole set of options like NOTES SOURCE SYMBOLGEN FULLSTIMER etc. etc.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322916#M71508</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-06T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322923#M71513</link>
      <description>&lt;P&gt;If the question is how to generate your own notes, warnings and error messages for the programs you develop,&lt;/P&gt;
&lt;P&gt;it is just a matter of writing to the log with the appropriate keywords.&lt;/P&gt;
&lt;P&gt;Here is an example with a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
put "NOTE: this is a note";
put "WARNING: and a warning";
put "ERROR: and an error";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS will recognize the keywords NOTE, WARNING and ERROR dand dispay the messages with the corresponding&lt;/P&gt;
&lt;P&gt;color highlighting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, on the other hand, you want to modify the messages displayed by SAS procedures, those are builtin features and you&lt;/P&gt;
&lt;P&gt;can not do more than change the level of logging as proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 09:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322923#M71513</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-01-06T09:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322924#M71514</link>
      <description>&lt;P&gt;The SAS log is a record of everything you do in your SAS session or with your SAS program. the SAS log messages may begin with the words NOTE, INFO, WARNING, ERROR, or an error number, and they may refer to a SAS statement by its line number in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more info on SAS log and ways to supress some of the notes/log statements, you can refer-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/lrcon/z0998454.htm" target="_self"&gt;https://v8doc.sas.com/sashtml/lrcon/z0998454.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 09:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322924#M71514</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2017-01-06T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322925#M71515</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will add to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;&amp;nbsp;solution the fact that you&amp;nbsp;may favor&amp;nbsp;&lt;STRONG&gt;PUTLOG&lt;/STRONG&gt; statement instead of &lt;STRONG&gt;PUT&lt;/STRONG&gt; as the former always writes to the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PUT&lt;/STRONG&gt; writes to log or to a file if you specified a &lt;STRONG&gt;FILE&lt;/STRONG&gt; statement inside your datastep, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data _null_;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;file MYFILE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;put 'ERROR:...'; * writes to the file;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;putlog 'ERROR...'; * writes to the log;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;PUTLOG&lt;/STRONG&gt; is not exactly the same as &lt;STRONG&gt;PUT&lt;/STRONG&gt; (when writting to the log), check here for more info:&amp;nbsp;&lt;A href="http://support.sas.com/kb/40/403.html" target="_blank"&gt;http://support.sas.com/kb/40/403.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&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>Fri, 06 Jan 2017 09:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/322925#M71515</guid>
      <dc:creator>Daniel-Santos</dc:creator>
      <dc:date>2017-01-06T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323140#M71580</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to read and consolidate the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two different ways to read log, 1. Proc printto and 2. DM statement. But, both of this havent given me a solution of reading the log simultaneously while program is excuting. Please suggest if any others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see below what I am trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a User creating program and executing it. During the execution of program it should read log and consolidate all the mistakes in log and bring it as a separate dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you..!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 04:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323140#M71580</guid>
      <dc:creator>bubblui</dc:creator>
      <dc:date>2017-01-07T04:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323145#M71581</link>
      <description>&lt;P&gt;Read below and then make the call what best suits your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS(R) 9.4 Logging: Configuration and Programming Reference, Second Edition&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/logug/67485/HTML/default/viewer.htm#titlepage.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/logug/67485/HTML/default/viewer.htm#titlepage.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you already searched the communities for similar questions? How to parse log files is something that regularly pops up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Question-on-reading-SAS-logs-into-a-SAS-dataset-specifically-to/m-p/266640/highlight/true#M52599" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Question-on-reading-SAS-logs-into-a-SAS-dataset-specifically-to/m-p/266640/highlight/true#M52599&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/SAS-Batch-read-log-of-current-program/m-p/312809/highlight/true#M67871" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/SAS-Batch-read-log-of-current-program/m-p/312809/highlight/true#M67871&lt;/A&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 05:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323145#M71581</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-07T05:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323159#M71585</link>
      <description>&lt;P&gt;Thank you Patrick.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 16:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323159#M71585</guid>
      <dc:creator>bubblui</dc:creator>
      <dc:date>2017-01-07T16:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS LOG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323161#M71587</link>
      <description>&lt;P&gt;Guys everyone thank you for time and response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Praveen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 16:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-LOG/m-p/323161#M71587</guid>
      <dc:creator>bubblui</dc:creator>
      <dc:date>2017-01-07T16:24:55Z</dc:date>
    </item>
  </channel>
</rss>

