<?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: Sending Email through SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157098#M30679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved it.&lt;/P&gt;&lt;P&gt;I used the following condition in the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background-color: #ffffff;"&gt;%if &amp;amp;wday_cnt. = 1 and (&lt;SPAN style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;&amp;amp;dsn1_var_cnt. = 0&amp;nbsp; or &amp;amp;dsn2_var_cnt. = 0) %then %do;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; background-color: #ffffff; font-family: 'courier new', courier;"&gt;%end;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2014 14:51:34 GMT</pubDate>
    <dc:creator>pp2014</dc:creator>
    <dc:date>2014-05-16T14:51:34Z</dc:date>
    <item>
      <title>Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157092#M30673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following code to send email through SAS if any of the datasets(daily)&amp;nbsp; are missing after checking if it is a working day or not based on the working day dataset.&amp;nbsp; Everything works but&amp;nbsp; it sends email&amp;nbsp; also even if wday_cnt = 0 (means non-working day).&amp;nbsp; Can anybody let me know what I am doing wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/** check if it is a working day or not *************/ &lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(new_date) into :wday_cnt&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from&amp;nbsp; wday_dsn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp; date1 = today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***** Check if&amp;nbsp; dsn2 data&amp;nbsp; exists for today or not **************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(distinct var1) into :dsn1_var_cnt&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from&amp;nbsp; dsn1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where dsn1_date = today(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/***** Check if dsn2 data exists for today or not **************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(distinct var1) into :dsn2_var_cnt&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from dsn2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where dsn2_date = today();&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put wday_cnt=&amp;amp;wday_cnt.; &lt;/P&gt;&lt;P&gt;%put dsn1_var_cnt =&amp;amp;dsn1_var_cnt.;&lt;/P&gt;&lt;P&gt;%put dsn2_var_cnt=&amp;amp;dsn2_var_cnt.; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; filename mail email from="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com"&gt;myname@email.com&lt;/A&gt;&lt;SPAN&gt;";&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;wday_cnt. = 1&amp;nbsp; then do;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. &amp;gt; 0 then do;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com"&gt;myname@email.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com"&gt;abc@email.com&lt;/A&gt;&lt;SPAN&gt;") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subject="Report Alert";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 data missing"; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. &amp;gt; 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com"&gt;myname@email.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com"&gt;abc@email.com&lt;/A&gt;&lt;SPAN&gt;") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subject="Report Alert";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN2 data missing"; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com"&gt;myname@email.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com"&gt;abc@email.com&lt;/A&gt;&lt;SPAN&gt;") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; subject="Report Alert";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 and DSN2 data missing"; end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&amp;nbsp;&amp;nbsp; /****** Working day loop end ***********/&amp;nbsp; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157092#M30673</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-13T15:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157093#M30674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157093#M30674</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-13T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157094#M30675</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;What happens if you put it into a macro, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;%macro testmail;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; %if &amp;amp;wday_cnt. = 1&amp;nbsp; %then %do; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp; filename mail email from="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;"; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. &amp;gt; 0 then do;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. &amp;gt; 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN2 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 and DSN2 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&amp;nbsp; %end;&amp;nbsp;&amp;nbsp; /****** Working day loop end ***********/ &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;%mend testmail;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;%testmail;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Amir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amir - added macro call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 17:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157094#M30675</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2014-05-13T17:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157095#M30676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amir for help.&amp;nbsp; Yes,&amp;nbsp; macro did the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 18:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157095#M30676</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-13T18:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157096#M30677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I get the email notification also with just subject ="Report Alert"&amp;nbsp;&amp;nbsp; if&amp;nbsp; &amp;amp;wday_cnt = 1&amp;nbsp; and&amp;nbsp; &amp;amp;dsn1_var_cnt &amp;gt; 0&amp;nbsp; and&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;amp;dsn2_var_cnt.&amp;nbsp; I&amp;nbsp; do not want this email notification. please help&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql noprint;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;/** check if it is a working day or not *************/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; select count(new_date) into :wday_cnt &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; from&amp;nbsp; wday_dsn&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where&amp;nbsp; date1 = today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; /***** Check if&amp;nbsp; dsn2 data&amp;nbsp; exists for today or not **************/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; select count(distinct var1) into :dsn1_var_cnt &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; from&amp;nbsp; dsn1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where dsn1_date = today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;/***** Check if dsn2 data exists for today or not **************/&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; select count(distinct var1) into :dsn2_var_cnt &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; from dsn2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where dsn2_date = today();&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%put wday_cnt=&amp;amp;wday_cnt.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%put dsn1_var_cnt =&amp;amp;dsn1_var_cnt.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%put dsn2_var_cnt=&amp;amp;dsn2_var_cnt.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;%macro testmail;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; %if &amp;amp;wday_cnt. = 1&amp;nbsp; %then %do;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; filename mail email from="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. &amp;gt; 0 then do;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. &amp;gt; 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN2 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; if &amp;amp;dsn1_var_cnt. = 0&amp;nbsp; and &amp;amp;dsn2_var_cnt. = 0 then do;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mail&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myname@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;myname@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; cc=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xyz@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;xyz@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:abc@email.com" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;abc@email.com&lt;/A&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp; subject="Report Alert";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put " DSN1 and DSN2 data missing"; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; %end;&amp;nbsp;&amp;nbsp; /****** Working day loop end ***********/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;%mend testmail;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;%testmail;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 13:43:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157096#M30677</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-16T13:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157097#M30678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody know how this can be resolved..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157097#M30678</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-16T14:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157098#M30679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved it.&lt;/P&gt;&lt;P&gt;I used the following condition in the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background-color: #ffffff;"&gt;%if &amp;amp;wday_cnt. = 1 and (&lt;SPAN style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;&amp;amp;dsn1_var_cnt. = 0&amp;nbsp; or &amp;amp;dsn2_var_cnt. = 0) %then %do;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; background-color: #ffffff; font-family: 'courier new', courier;"&gt;%end;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-through-SAS/m-p/157098#M30679</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2014-05-16T14:51:34Z</dc:date>
    </item>
  </channel>
</rss>

