<?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 can I get an email data step to send a notification when the sas program runs from a scheduler? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183988#M303475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the log?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 14:33:12 GMT</pubDate>
    <dc:creator>Hima</dc:creator>
    <dc:date>2014-09-03T14:33:12Z</dc:date>
    <item>
      <title>How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183987#M303474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I get an email data step to send a notification when the SAS program runs from a scheduler?&lt;/P&gt;&lt;P&gt;I have a data step that sends an email notification to myself when the SAS process is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename sendmail email ("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:toaddress@email.com"&gt;toaddress@email.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;subject = "this is a test email";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file sendmail;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Body of email */&lt;/P&gt;&lt;P&gt;&amp;nbsp; put ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'process completed';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'The file is located in the following folder';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put 'folder location';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put ' ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the process manually when SAS is open, the email notification gets sent.&amp;nbsp; The SAS process, however, is scheduled automatically through windows task scheduler, and although the processs completely runs, i do not get an email notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to solve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183987#M303474</guid>
      <dc:creator>JohnA_Brown</dc:creator>
      <dc:date>2014-09-03T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183988#M303475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the log?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183988#M303475</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2014-09-03T14:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183989#M303476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lsf and most other professional schedulers are supporting an email notify as part of their settings.&lt;/P&gt;&lt;P&gt;No need to program sas code for that.&lt;/P&gt;&lt;P&gt;Using the windows scheduler on your desktop is not the best way fort scheduling. As you noticed the mail settings are default connected to outlook.&lt;BR /&gt;You must change a lot of settings to an external mailprovider to get around that so it will run as a batch-job.&lt;/P&gt;&lt;P&gt;A batch-job better background-job is a way of running processes without any keyboard / screen interaction. &lt;BR /&gt;Did you run your process manually as a batch-job?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183989#M303476</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-03T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183990#M303477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not run manually as a batch job that i know if, I am still a fairly new SAS programmer, so not sure how to set this up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183990#M303477</guid>
      <dc:creator>JohnA_Brown</dc:creator>
      <dc:date>2014-09-03T14:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183991#M303478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are seveal entries int the log, is there anything in particular you want me to send?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 14:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183991#M303478</guid>
      <dc:creator>JohnA_Brown</dc:creator>
      <dc:date>2014-09-03T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get an email data step to send a notification when the sas program runs from a scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183992#M303479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For running in batch see: &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n0yfzk61sv9f2wn1o2rieqr5jlt6.htm"&gt;http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#n0yfzk61sv9f2wn1o2rieqr5jlt6.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The crux is using a windows script (.bat .cmd), similar as a scheduler does.&lt;/P&gt;&lt;P&gt;The log should be save so you can see that after it has been run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For email-usage to an email provider see: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lesysoptsref/67465/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm"&gt;http://support.sas.com/documentation/cdl/en/lesysoptsref/67465/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are several of those. There must be en emailproivider Exchange server&amp;nbsp; (not your localhost) to serve that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 15:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-an-email-data-step-to-send-a-notification-when-the/m-p/183992#M303479</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-03T15:53:35Z</dc:date>
    </item>
  </channel>
</rss>

