<?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: Email Notification with processing time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218545#M40251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, as to your question about capturing/reporting processing-time:&amp;nbsp; the SAS DATA step function DATETIME() can capture the current date/time into either a SAS DATA step variable or also using SYMPUT you can capture the character-string equivalent to a SAS macro variable.&amp;nbsp; With this coding technique applied, then any SAS code-piece can have a pre-processing (initialization) DATETIME() data capture and a post-processing (clean-up) execution to derive an elapsed time.&lt;/P&gt;&lt;P&gt;And with this information, your options are to either make use of MACRO variable "passing" between the initialization and clean-up code-points to derive an elapsed-time data value -- or otherwise more simplified approach having a SAS temporary dataset with the variable containing the start-time and then having the end-time to compute a duration-execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2015 18:22:19 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2015-05-25T18:22:19Z</dc:date>
    <item>
      <title>Email Notification with processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218543#M40249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i tell SAS to notify me via email once macro finished processing? Also, can i mention in the email processing time - time taken by macro with the attachment CSV file generated by macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro replace (input= prac.file1,stats=median,vars=Q1-Q5,output=replaced); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Generate analysis results ;&lt;/P&gt;&lt;P&gt;proc means data=&amp;amp;input noprint; &lt;/P&gt;&lt;P&gt;var &amp;amp;vars;&lt;/P&gt;&lt;P&gt;output out=dummy (drop=_type_ _freq_) &amp;amp;stats= / autoname;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Convert to vertical ;&lt;/P&gt;&lt;P&gt;proc transpose data=dummy out=dummy;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Replace missing with analysis results ;&lt;/P&gt;&lt;P&gt;data &amp;amp;output;&lt;/P&gt;&lt;P&gt;set &amp;amp;input; &lt;/P&gt;&lt;P&gt;array vars &amp;amp;vars ;&lt;/P&gt;&lt;P&gt;do i =1 to dim(vars);&lt;/P&gt;&lt;P&gt;set dummy(keep=col1) point= i ;&lt;/P&gt;&lt;P&gt;vars(i)=coalesce(vars(i),col1);&lt;/P&gt;&lt;P&gt;drop col1 ;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc export outfile = &amp;amp;output data ='\user\ujjwal'&lt;/P&gt;&lt;P&gt;dbms =csv;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;Options mprint nosymbolgen;&lt;/P&gt;&lt;P&gt;%replace (input= prac.file1,stats= median,vars=Q1-Q5,output=replaced);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 20:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218543#M40249</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2015-05-23T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Email Notification with processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218544#M40250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can send emails from a SAS program using FILENAME statement with the EMAIL access method, see here for more information &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm"&gt;SAS(R) 9.4 Statements: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 22:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218544#M40250</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-05-24T22:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Email Notification with processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218545#M40251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, as to your question about capturing/reporting processing-time:&amp;nbsp; the SAS DATA step function DATETIME() can capture the current date/time into either a SAS DATA step variable or also using SYMPUT you can capture the character-string equivalent to a SAS macro variable.&amp;nbsp; With this coding technique applied, then any SAS code-piece can have a pre-processing (initialization) DATETIME() data capture and a post-processing (clean-up) execution to derive an elapsed time.&lt;/P&gt;&lt;P&gt;And with this information, your options are to either make use of MACRO variable "passing" between the initialization and clean-up code-points to derive an elapsed-time data value -- or otherwise more simplified approach having a SAS temporary dataset with the variable containing the start-time and then having the end-time to compute a duration-execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 18:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Notification-with-processing-time/m-p/218545#M40251</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2015-05-25T18:22:19Z</dc:date>
    </item>
  </channel>
</rss>

