<?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 to be triggered when every 100 iterations are done in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383582#M24733</link>
    <description>Hello, thankyou for this solution. Could you please edit your answer : %sysfunc instead of syfunc.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Thanu</description>
    <pubDate>Fri, 28 Jul 2017 08:15:52 GMT</pubDate>
    <dc:creator>Thanu</dc:creator>
    <dc:date>2017-07-28T08:15:52Z</dc:date>
    <item>
      <title>Email to be triggered when every 100 iterations are done</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383578#M24731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great If somene helps me out in this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When a macro is running, I would like an email to be sent to me after each 100 iterations have completed.&lt;BR /&gt;So for the example below I would receive 10 emails…one for each time it completes another 100. It has to be dynamic so that, it emails after each 100 iterations regardless of how many have run till then.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think can we use the mod function? If so , what is the logic. How can I insert it into the below macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro macrhlp();&lt;BR /&gt;%do i=1 %to 1000;&lt;/P&gt;&lt;P&gt;/*when 100 have run then do following*/&lt;BR /&gt;filename mymail email "myemail@email.com" subject="100 have run";&lt;BR /&gt;data _null_;file mymail;put '100 have run';run;&lt;BR /&gt;/*when 200 have run then do following*/&lt;BR /&gt;filename mymail email "&lt;SPAN&gt;myemail@email.com&lt;/SPAN&gt;" subject="200 have run";&lt;BR /&gt;data _null_;file mymail;put '200 have run';run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;BR /&gt;%mend;&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;SPAN&gt;macrhlp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 07:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383578#M24731</guid>
      <dc:creator>Thanu</dc:creator>
      <dc:date>2017-07-28T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Email to be triggered when every 100 iterations are done</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383580#M24732</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro macrhlp();
%do i=1 %to 1000;

  %if %sysfunc(mod(&amp;amp;i,100)) = 0 %then %do;
    filename mymail email "&lt;A class="linkification-ext" title="Linkification: mailto:myemail@email.com" href="mailto:myemail@email.com" target="_blank"&gt;myemail@email.com&lt;/A&gt;" subject="&amp;amp;i have run";
    data _null_;file mymail;put "&amp;amp;i have run";run;
  %end;
 

%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 08:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383580#M24732</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Email to be triggered when every 100 iterations are done</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383582#M24733</link>
      <description>Hello, thankyou for this solution. Could you please edit your answer : %sysfunc instead of syfunc.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Thanu</description>
      <pubDate>Fri, 28 Jul 2017 08:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383582#M24733</guid>
      <dc:creator>Thanu</dc:creator>
      <dc:date>2017-07-28T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Email to be triggered when every 100 iterations are done</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383584#M24734</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/113111"&gt;@Thanu&lt;/a&gt; wrote:&lt;BR /&gt;Could you please edit your answer : %sysfunc instead of syfunc.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Done.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 08:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Email-to-be-triggered-when-every-100-iterations-are-done/m-p/383584#M24734</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-28T08:20:49Z</dc:date>
    </item>
  </channel>
</rss>

