<?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: How to check logs for errors and send email thru sas code in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/231609#M54587</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a&amp;nbsp;pretty cool add-in to Base SAS on &lt;A href="http://www.tatesoft.com" target="_blank"&gt;www.tatesoft.com&lt;/A&gt; that may be very usefull to you. The tool called Log Analyser is integrated into Base SAS and can produce Log summary report in a second. You may also analyse log in details if you wish. Really great tool!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 12:18:01 GMT</pubDate>
    <dc:creator>kaji</dc:creator>
    <dc:date>2015-10-26T12:18:01Z</dc:date>
    <item>
      <title>How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22546#M4948</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
Just wondering is there any SAS code available to check SAS logs for errors and if send email if  the job was failure or success to the person who ran the job?&lt;BR /&gt;
&lt;BR /&gt;
I am trying to automate  my process,if you all can help me,that would be great.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Fri, 14 May 2010 18:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22546#M4948</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-05-14T18:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22547#M4949</link>
      <description>What OS platform and verify that you are running SAS on your local machine (or otherwise).  Also the SAS version would be helpful.&lt;BR /&gt;
&lt;BR /&gt;
You can use FILENAME &lt;FILEREF&gt;  EMAIL engine to send a SAS notification, based on the previous SAS processing success or failure.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/FILEREF&gt;</description>
      <pubDate>Fri, 14 May 2010 19:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22547#M4949</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-14T19:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22548#M4950</link>
      <description>Thanks SBB,&lt;BR /&gt;
I am using SAS on Windows server,do you have any suggestions/reference document, how to check the errors in SAS log using SAS code.</description>
      <pubDate>Fri, 14 May 2010 23:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22548#M4950</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-05-14T23:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22549#M4951</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
This link is very useful&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.tau.ac.il/cc/pages/docs/sas8/cms/z1271256.htm" target="_blank"&gt;http://www.tau.ac.il/cc/pages/docs/sas8/cms/z1271256.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Sandhya.</description>
      <pubDate>Thu, 20 May 2010 15:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22549#M4951</guid>
      <dc:creator>Sandhya</dc:creator>
      <dc:date>2010-05-20T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22550#M4952</link>
      <description>Thanks Sandhya.</description>
      <pubDate>Thu, 20 May 2010 16:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22550#M4952</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-05-20T16:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22551#M4953</link>
      <description>Hi Sandhya,&lt;BR /&gt;
&lt;BR /&gt;
Can you please give me the access for the below link,or can you please send me the macro.to check logs for errors and send email thru sas code.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
DUNE</description>
      <pubDate>Tue, 21 Jun 2011 16:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22551#M4953</guid>
      <dc:creator>ppsas</dc:creator>
      <dc:date>2011-06-21T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22552#M4954</link>
      <description>I have several jobs that are scheduled to run each night.  &lt;BR /&gt;
&lt;BR /&gt;
I capture errors based on the &amp;amp;syserr macro variable and %syserrortext (new in SAS 9.2) at relevents spots in my code and assigning to a new macro variable.  At the end of my job, I can check the value of each of these error variables and send a status report (via email to myself or project leads).&lt;BR /&gt;
&lt;BR /&gt;
For instance  (simple example)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%let step1err = -1;  * Real errors are 0 - ....; -1 indicated that step not run;&lt;BR /&gt;
%let step1msg = ;&lt;BR /&gt;
&lt;BR /&gt;
step goes here...&lt;BR /&gt;
&lt;BR /&gt;
%let STEP1err = &amp;amp;SYSERR;&lt;BR /&gt;
%LET step= &amp;amp;SYSERRORTEXT;&lt;BR /&gt;
&lt;BR /&gt;
At the end of the job I collect all my steperrs and create a report that shows how each step completed.    &lt;BR /&gt;
&lt;BR /&gt;
This is very generalized.. you will have to adapt method to your own circumstances.  Hope this gives you a startting point</description>
      <pubDate>Wed, 22 Jun 2011 19:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/22552#M4954</guid>
      <dc:creator>LAP</dc:creator>
      <dc:date>2011-06-22T19:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to check logs for errors and send email thru sas code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/231609#M54587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a&amp;nbsp;pretty cool add-in to Base SAS on &lt;A href="http://www.tatesoft.com" target="_blank"&gt;www.tatesoft.com&lt;/A&gt; that may be very usefull to you. The tool called Log Analyser is integrated into Base SAS and can produce Log summary report in a second. You may also analyse log in details if you wish. Really great tool!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-check-logs-for-errors-and-send-email-thru-sas-code/m-p/231609#M54587</guid>
      <dc:creator>kaji</dc:creator>
      <dc:date>2015-10-26T12:18:01Z</dc:date>
    </item>
  </channel>
</rss>

