<?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 Error Reporting in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51893#M14257</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there is a way of emailing if an error occurs in an overnight script?&lt;BR /&gt;
&lt;BR /&gt;
Im using SAS 9.1.3 and on XP.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Mon, 06 Oct 2008 09:40:22 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-06T09:40:22Z</dc:date>
    <item>
      <title>Error Reporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51893#M14257</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there is a way of emailing if an error occurs in an overnight script?&lt;BR /&gt;
&lt;BR /&gt;
Im using SAS 9.1.3 and on XP.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Mon, 06 Oct 2008 09:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51893#M14257</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-06T09:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51894#M14258</link>
      <description>Support.sas.com is full of examples on this topic, if you care to search. Here's a couple that I found:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/065-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/065-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/126-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/126-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/021-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/021-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 06 Oct 2008 11:01:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51894#M14258</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-06T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51895#M14259</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I have found the code i want but Outlook throws a wobbly when i send an email via SAS, is there anyway of 'signing' the email from SAS.&lt;BR /&gt;
&lt;BR /&gt;
the code im using is:&lt;BR /&gt;
%macro send_mail(job);&lt;BR /&gt;
	filename mymail email 'spud@work.com' subject=&amp;amp;job.;&lt;BR /&gt;
	%if &amp;amp;syscc&amp;gt;0 %then %do;&lt;BR /&gt;
		data _null_;&lt;BR /&gt;
			file mymail;&lt;BR /&gt;
			put 'An ERROR has occurred in the code';&lt;BR /&gt;
		run;&lt;BR /&gt;
	%end;&lt;BR /&gt;
	%else %do;&lt;BR /&gt;
		data _null_;&lt;BR /&gt;
			file mymail;&lt;BR /&gt;
			put 'The job ran to completion';&lt;BR /&gt;
		run;&lt;BR /&gt;
	%end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
%send_mail(job=Monthly);&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
Spud</description>
      <pubDate>Fri, 17 Oct 2008 16:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51895#M14259</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-17T16:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51896#M14260</link>
      <description>Sorry, I don't really know what a wobbly is. Do you some kind of message from Outlook (or your e-mail server)? Does the SAS log looks ok? Your email config options in SAS might be to see, and some information about your email server. &lt;BR /&gt;
&lt;BR /&gt;
About digital signatures, the only place I can see them mentioned in SAS doc is when using SSL, and I don't think this will apply when sending emails.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 17 Oct 2008 21:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51896#M14260</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-17T21:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error Reporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51897#M14261</link>
      <description>Hi:&lt;BR /&gt;
  Perhaps you mean either of these scenarios:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/5/335.html" target="_blank"&gt;http://support.sas.com/kb/5/335.html&lt;/A&gt;&lt;BR /&gt;
( about the message from Outlook: A program is trying to automatically send e-mail on your behalf. Do you want to allow this? If this is unexpected, it may be a  virus and you should choose "No".)&lt;BR /&gt;
&lt;BR /&gt;
or this one:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/9/243.html" target="_blank"&gt;http://support.sas.com/kb/9/243.html&lt;/A&gt; (about Outlook prompting for a PROFILE name)&lt;BR /&gt;
&lt;BR /&gt;
Otherwise, you might consider contacting Tech Support for help with emailing from a SAS program.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 17 Oct 2008 22:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Reporting/m-p/51897#M14261</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-17T22:22:39Z</dc:date>
    </item>
  </channel>
</rss>

