<?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 do I Program Conditional Email Distribution? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332625#M271921</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128041"&gt;@jonwane&lt;/a&gt;, you wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(6) I created some filtering and a separate table (combinedemails) within processflow2 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;that &lt;STRONG&gt;appends all four columns of emails into one column&lt;/STRONG&gt;, removes duplicates, removes empty cells, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and places quotation marks around each email address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I did not use static list of emails. In my first step:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data emails;
  infile datalines  truncover;
  input adrs $;
datalines;
person1@site1.com
person2@site2.com
person3@site3.com
;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I have just created a test dataset containing some emails in one column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any time you run your report, there will be different (number of) emails.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The next step creates the macro variable to hold list of emails to be used in &lt;STRONG&gt;TO&lt;/STRONG&gt; statement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;creating the report. You need addapt input table name and variable names in that step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
  set  emails end=eof;
        length addresses $100;    /* adapt length to maximum expected */
        retain  addresses;
        addresses = catx('"  "', addresses, adrs)'
        if eof then do;
            addresses = '"' || addresses ||'"';
            call symput('Emails', addresses);
        end;
run;
 
Then, creating the email:
     TO = ( &amp;amp;Emails );      &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You can check the list by entering code :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;%put EMAILS = &amp;amp;emails;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;immediately after 2nd step, before the reporting step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case it doesn't work as expected, post your log - the relevant part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 14:23:10 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-02-14T14:23:10Z</dc:date>
    <item>
      <title>How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331298#M271915</link>
      <description>&lt;P&gt;Hi. I'm new to SAS 9.4 and this forum.&lt;/P&gt;&lt;P&gt;I've created a table that changes daily.&lt;/P&gt;&lt;P&gt;Included in my table are four columns of coworker email addresses that I need to email the report to.&lt;/P&gt;&lt;P&gt;I am able to email the report to myself using the TO= command, but I am not able to find any documentation that helps me understand how to use the column variables for emailing.&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;P&gt;Again, the email addresses on the report change every day, so static email addresses don't work.&lt;/P&gt;&lt;P&gt;Any programming suggestions (or links) would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME mail EMAIL&lt;/P&gt;&lt;P&gt;FROM="work_email@work.com"&lt;/P&gt;&lt;P&gt;TO=("?????????????????????????????")&lt;/P&gt;&lt;P&gt;REPLYTO="work_email@work.com"&lt;/P&gt;&lt;P&gt;SUBJECT="Notification Table to Coworkers"&lt;/P&gt;&lt;P&gt;CONTENT_TYPE="text/html";&lt;/P&gt;&lt;P&gt;ODS LISTING close;&lt;/P&gt;&lt;P&gt;ODS HTML BODY=mail options(pagebreak="no") STYLE=EGDefault;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 19:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331298#M271915</guid>
      <dc:creator>jonwane</dc:creator>
      <dc:date>2017-02-09T19:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331307#M271916</link>
      <description>&lt;P&gt;You should create a macro variable containing the relevant emails and use it in the TO statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a sample of your data that contains the emails, the rules to decide who of them are relevant,&lt;/P&gt;
&lt;P&gt;and you'll get in replay how to create the macro variable and how to use it in the email&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331307#M271916</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-09T20:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331310#M271917</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128041"&gt;@jonwane&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi. I'm new to SAS 9.4 and this forum.&lt;/P&gt;
&lt;P&gt;I've created a table that changes daily.&lt;/P&gt;
&lt;P&gt;Included in my table are four columns of coworker email addresses that I need to email the report to.&lt;/P&gt;
&lt;P&gt;I am able to email the report to myself using the TO= command, but I am not able to find any documentation that helps me understand how to use the column variables for emailing.&lt;/P&gt;
&lt;P&gt;Does this make sense?&lt;/P&gt;
&lt;P&gt;Again, the email addresses on the report change every day, so static email addresses don't work.&lt;/P&gt;
&lt;P&gt;Any programming suggestions (or links) would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME mail EMAIL&lt;/P&gt;
&lt;P&gt;FROM="work_email@work.com"&lt;/P&gt;
&lt;P&gt;TO=("?????????????????????????????")&lt;/P&gt;
&lt;P&gt;REPLYTO="work_email@work.com"&lt;/P&gt;
&lt;P&gt;SUBJECT="Notification Table to Coworkers"&lt;/P&gt;
&lt;P&gt;CONTENT_TYPE="text/html";&lt;/P&gt;
&lt;P&gt;ODS LISTING close;&lt;/P&gt;
&lt;P&gt;ODS HTML BODY=mail options(pagebreak="no") STYLE=EGDefault;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and read it all paying close attention to the section.&lt;/P&gt;
&lt;P&gt;PUT Statement Email Directives&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/331310#M271917</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-02-09T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332316#M271918</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;&lt;P&gt;Thank you. Please excuse my delayed response.&lt;/P&gt;&lt;P&gt;So, in my report, I have 4 columns of emails (some blanks and some duplicate email addresses)&lt;/P&gt;&lt;P&gt;In my Process Flow, I created filtering for the four columns of email addresses, I appended them into one table, and then in a new table titled "Combined Emails" I combined all the email addresses into one column, removed duplicates, and added quotations around each email address.&lt;/P&gt;&lt;P&gt;So now, I have a table that will repopulate all the emails I need when I run the branch.&lt;/P&gt;&lt;P&gt;My questions is, how do I add that column to the TO= statement within my program so it will mail out to the people on the "Combined Emails" table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If more info is needed, I will gladly supply it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 19:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332316#M271918</guid>
      <dc:creator>jonwane</dc:creator>
      <dc:date>2017-02-13T19:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332331#M271919</link>
      <description>&lt;P&gt;If I'm right you create a table with a column containing the relevane emails.&lt;/P&gt;
&lt;P&gt;Next code will create such table with 3 emails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data emails;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile datalines &amp;nbsp;truncover;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input adrs $;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;person1@site1.com&lt;/P&gt;
&lt;P&gt;person2@site2.com&lt;/P&gt;
&lt;P&gt;person3@site3.com&lt;/P&gt;
&lt;P&gt;;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* creating macro variable with all relevant emails */&lt;/P&gt;
&lt;P&gt;data _NULL_;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; set &amp;nbsp;emails end=eof;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;length addresses $100; &amp;nbsp; &amp;nbsp;/* adapt length to maximum expected */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;retain &amp;nbsp;addresses;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addresses = catx('" &amp;nbsp;"', addresses, adrs)'&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if eof then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; addresses = '"' || addresses ||'"';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; call symput('&lt;STRONG&gt;Emails&lt;/STRONG&gt;', addresses);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, creating the email:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TO = ( &amp;amp;&lt;STRONG&gt;Emails&lt;/STRONG&gt; ); &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 20:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332331#M271919</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-13T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332573#M271920</link>
      <description>&lt;P&gt;Hi Shumel,&lt;/P&gt;&lt;P&gt;Thank you for taking your valuable time to help me.&lt;/P&gt;&lt;P&gt;Your solution appears to refer to static addresses:&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;person1@site1.com&lt;/P&gt;&lt;P&gt;person2@site2.com&lt;/P&gt;&lt;P&gt;person3@site3.com&lt;/P&gt;&lt;P&gt;Unfortunately, my email addresses are not static, meaning they change every time I run the report (daily). In my report, there are a total of 10,000+ possible email addresses and the report I need to distribute might have as few as 3 or as many as several hundred, depending on what accounts are "flagged" on my report for that day.&lt;/P&gt;&lt;P&gt;(1) I run an aggregated report (report1) I created in a separate process flow (processflow1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2) In my new process flow (processflow2), I created a query that takes some of the data from report1 and creates report2.&lt;/P&gt;&lt;P&gt;(3) Now were done with processflow1 and report1&amp;nbsp;&lt;/P&gt;&lt;P&gt;(4) In processflow2 I wrote a program that highlights daily changes within the report using ODS, HTML, PROC REPORT, and EMAIL commands.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(5) Within report2 are four columns of email addresses that change daily, depending on what accounts are "flagged"&lt;/P&gt;&lt;P&gt;(6) I created some filtering and a separate table (combinedemails) within processflow2 that appends all four columns of emails into one column, removes duplicates, removes empty cells, and places quotation marks around each email address.&lt;/P&gt;&lt;P&gt;(7) The report looks good, when I email it to myself.&lt;/P&gt;&lt;P&gt;(8) My chanllenge is getting the combinedemails table into the TO= &amp;nbsp;so it will email out to them, not just me.&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;P&gt;Thank you again for any advice you might offer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 12:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332573#M271920</guid>
      <dc:creator>jonwane</dc:creator>
      <dc:date>2017-02-14T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332625#M271921</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128041"&gt;@jonwane&lt;/a&gt;, you wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(6) I created some filtering and a separate table (combinedemails) within processflow2 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;that &lt;STRONG&gt;appends all four columns of emails into one column&lt;/STRONG&gt;, removes duplicates, removes empty cells, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and places quotation marks around each email address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I did not use static list of emails. In my first step:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data emails;
  infile datalines  truncover;
  input adrs $;
datalines;
person1@site1.com
person2@site2.com
person3@site3.com
;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;I have just created a test dataset containing some emails in one column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any time you run your report, there will be different (number of) emails.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The next step creates the macro variable to hold list of emails to be used in &lt;STRONG&gt;TO&lt;/STRONG&gt; statement&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;creating the report. You need addapt input table name and variable names in that step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
  set  emails end=eof;
        length addresses $100;    /* adapt length to maximum expected */
        retain  addresses;
        addresses = catx('"  "', addresses, adrs)'
        if eof then do;
            addresses = '"' || addresses ||'"';
            call symput('Emails', addresses);
        end;
run;
 
Then, creating the email:
     TO = ( &amp;amp;Emails );      &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You can check the list by entering code :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;%put EMAILS = &amp;amp;emails;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;immediately after 2nd step, before the reporting step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case it doesn't work as expected, post your log - the relevant part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 14:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332625#M271921</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-14T14:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Program Conditional Email Distribution?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332720#M271922</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/128041"&gt;@jonwane&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Shumel,&lt;/P&gt;
&lt;P&gt;Thank you for taking your valuable time to help me.&lt;/P&gt;
&lt;P&gt;Your solution appears to refer to static addresses:&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;person1@site1.com&lt;/P&gt;
&lt;P&gt;person2@site2.com&lt;/P&gt;
&lt;P&gt;person3@site3.com&lt;/P&gt;
&lt;P&gt;Unfortunately, my email addresses are not static, meaning they change every time I run the report (daily). In my report, there are a total of 10,000+ possible email addresses and the report I need to distribute might have as few as 3 or as many as several hundred, depending on what accounts are "flagged" on my report for that day.&lt;/P&gt;
&lt;P&gt;(1) I run an aggregated report (report1) I created in a separate process flow (processflow1)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2) In my new process flow (processflow2), I created a query that takes some of the data from report1 and creates report2.&lt;/P&gt;
&lt;P&gt;(3) Now were done with processflow1 and report1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(4) In processflow2 I wrote a program that highlights daily changes within the report using ODS, HTML, PROC REPORT, and EMAIL commands.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(5) Within report2 are four columns of email addresses that change daily, depending on what accounts are "flagged"&lt;/P&gt;
&lt;P&gt;(6) I created some filtering and a separate table (combinedemails) within processflow2 that appends all four columns of emails into one column, removes duplicates, removes empty cells, and places quotation marks around each email address.&lt;/P&gt;
&lt;P&gt;(7) The report looks good, when I email it to myself.&lt;/P&gt;
&lt;P&gt;(8) My chanllenge is getting the combinedemails table into the TO= &amp;nbsp;so it will email out to them, not just me.&lt;/P&gt;
&lt;P&gt;Does this make sense?&lt;/P&gt;
&lt;P&gt;Thank you again for any advice you might offer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Go here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n0ig2krarrz6vtn..." target="_self"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/69738/HTML/default/viewer.htm#n0ig2krarrz6vtn...&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and read it all paying close attention to the section.&lt;/P&gt;
&lt;P&gt;PUT Statement Email Directives&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 17:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-Program-Conditional-Email-Distribution/m-p/332720#M271922</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-02-14T17:07:41Z</dc:date>
    </item>
  </channel>
</rss>

