<?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 sending distinct emails to a list of different recipients, with all data (content to send + emails ) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sending-distinct-emails-to-a-list-of-different-recipients-with/m-p/559297#M156161</link>
    <description>&lt;P&gt;%Macro Sendemail;&lt;BR /&gt;%do i=1 %to &amp;amp;n;&lt;BR /&gt;FILENAME mail EMAIL;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;SET &amp;amp;&amp;amp;channel&amp;amp;i END=eof ;&lt;BR /&gt;FILE mail;&lt;BR /&gt;PUT '!EM_TO!' email1&amp;nbsp;&lt;BR /&gt;PUT '!EM_SUBJECT!' 'New price information for ' ;&lt;BR /&gt;PUT "These are the fares as valid on &amp;amp;SYSDATE";&lt;BR /&gt;%PUT &amp;amp;&amp;amp;&amp;amp;channel&amp;amp;i;&lt;BR /&gt;PUT '!EM_SEND!' / '!EM_NEWMSG!';&lt;BR /&gt;IF eof THEN PUT '!EM_ABORT!';&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend sendemail;&lt;BR /&gt;%sendemail;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 13:12:22 GMT</pubDate>
    <dc:creator>Mlombosm</dc:creator>
    <dc:date>2019-05-16T13:12:22Z</dc:date>
    <item>
      <title>sending distinct emails to a list of different recipients, with all data (content to send + emails )</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sending-distinct-emails-to-a-list-of-different-recipients-with/m-p/559297#M156161</link>
      <description>&lt;P&gt;%Macro Sendemail;&lt;BR /&gt;%do i=1 %to &amp;amp;n;&lt;BR /&gt;FILENAME mail EMAIL;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;SET &amp;amp;&amp;amp;channel&amp;amp;i END=eof ;&lt;BR /&gt;FILE mail;&lt;BR /&gt;PUT '!EM_TO!' email1&amp;nbsp;&lt;BR /&gt;PUT '!EM_SUBJECT!' 'New price information for ' ;&lt;BR /&gt;PUT "These are the fares as valid on &amp;amp;SYSDATE";&lt;BR /&gt;%PUT &amp;amp;&amp;amp;&amp;amp;channel&amp;amp;i;&lt;BR /&gt;PUT '!EM_SEND!' / '!EM_NEWMSG!';&lt;BR /&gt;IF eof THEN PUT '!EM_ABORT!';&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend sendemail;&lt;BR /&gt;%sendemail;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 13:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sending-distinct-emails-to-a-list-of-different-recipients-with/m-p/559297#M156161</guid>
      <dc:creator>Mlombosm</dc:creator>
      <dc:date>2019-05-16T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: sending distinct emails to a list of different recipients, with all data (content to send + emai</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sending-distinct-emails-to-a-list-of-different-recipients-with/m-p/559414#M156196</link>
      <description>&lt;P&gt;And the question is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to guess that you don't actually want %put as that sends output to the LOG not the FILE statement destination.&lt;/P&gt;
&lt;P&gt;Maybe you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PUT "&amp;amp;&amp;amp;&amp;amp;channel&amp;amp;i ";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 16:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sending-distinct-emails-to-a-list-of-different-recipients-with/m-p/559414#M156196</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-16T16:57:18Z</dc:date>
    </item>
  </channel>
</rss>

