<?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 to send email with 2 different subject messages like conditional email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379593#M276948</link>
    <description>&lt;P&gt;yes my count1 is resolving to 0, i have double checked but not sure why it is going to else part!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 22:29:40 GMT</pubDate>
    <dc:creator>Deepti44</dc:creator>
    <dc:date>2017-07-26T22:29:40Z</dc:date>
    <item>
      <title>how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379577#M276944</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i send a conditional email with different subject messages .Can you please help me out as im trying to execute my job in batch mode and trying to send emails based on success/unsuceesful of job ! i tried below but it is going to else statement even if the if statement is true.&lt;/P&gt;&lt;P&gt;FILENAME TEMP EMAIL TO=(&lt;BR /&gt;"person@yahoocom"&lt;BR /&gt;)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;set my_log1;&lt;BR /&gt;IF &amp;amp;count1.=0 then do;&lt;BR /&gt;FILE TEMP&lt;BR /&gt;subject="PBDV report Successfull for &amp;amp;run_date." ;&lt;BR /&gt;PUT 'PLEASE VIEW THE REPORT IN THE REPORTING PORTAL ' ;&lt;BR /&gt;PUT ;&lt;BR /&gt;today = put(date(),worddate18.);&lt;BR /&gt;PUT ' ' today;&lt;BR /&gt;PUT ;&lt;BR /&gt;end;&lt;BR /&gt;else&lt;BR /&gt;do;&lt;BR /&gt;file temp&lt;BR /&gt;subject="PBDV report not Successfull for &amp;amp;run_date.";&lt;BR /&gt;PUT "PBDV REPORT FAILED FOR &amp;amp;run_date." ;&lt;BR /&gt;PUT ;&lt;BR /&gt;Put ' This e-mail is an automated notification!';&lt;BR /&gt;PUT ;&lt;BR /&gt;PUT 'DO NOT REPLY TO THIS MESSAGE ';&lt;BR /&gt;Put '=============================================';&lt;BR /&gt;Put ' Please contact:';&lt;BR /&gt;Put ' .person.@yahoo.com&lt;/P&gt;&lt;P&gt;' ;&lt;BR /&gt;Put ' if you have any questions or concerns.' ;&lt;BR /&gt;Put '=============================================';&lt;BR /&gt;Put ;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 21:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379577#M276944</guid>
      <dc:creator>Deepti44</dc:creator>
      <dc:date>2017-07-26T21:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379585#M276945</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134796"&gt;@Deepti44&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;With an IF..THEN ..ELSE as you've done it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is not working?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379585#M276945</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-07-26T22:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379587#M276946</link>
      <description>&lt;P&gt;even IF statement is true , it is going to else staement and sending subject of the email &amp;nbsp;"as &amp;nbsp;job not successfull ".&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379587#M276946</guid>
      <dc:creator>Deepti44</dc:creator>
      <dc:date>2017-07-26T22:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379590#M276947</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/134796"&gt;@Deepti44&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If you're testing with the code you've posted then I don't see how this could happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure your macro variable contains a 0 when you believe the condition should be TRUE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use &lt;EM&gt;options symbolgen;&lt;/EM&gt; to see in the Log to what your macro var resolves;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For test purposes populate the macro variable manually right before the data step&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;%let&amp;nbsp;count1=0;&lt;/EM&gt;&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;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379590#M276947</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-07-26T22:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379593#M276948</link>
      <description>&lt;P&gt;yes my count1 is resolving to 0, i have double checked but not sure why it is going to else part!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379593#M276948</guid>
      <dc:creator>Deepti44</dc:creator>
      <dc:date>2017-07-26T22:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379599#M276949</link>
      <description>&lt;P&gt;post your log (as attachment)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/379599#M276949</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-07-26T22:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to send email with 2 different subject messages like conditional email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/384618#M276950</link>
      <description>&lt;P&gt;I have used Email directives from SAS and it worked, i just replaced current subject with the new one's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 14:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-send-email-with-2-different-subject-messages-like/m-p/384618#M276950</guid>
      <dc:creator>Deepti44</dc:creator>
      <dc:date>2017-08-01T14:01:50Z</dc:date>
    </item>
  </channel>
</rss>

