<?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 Issue with email ID list for EMAIL engine in FILENAME statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56454#M12044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could always read your emails, one by one, in a loop that executes your code inserting each address and sending the email before getting the next one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Feb 2012 05:31:21 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-02-19T05:31:21Z</dc:date>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56447#M12037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need some help to resolve the issue with the length of email ID list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a datastep to mail my customers. Unfortunately, the list is huge. I use a bit of list in the !EM_TO! and most of the mail ID list in the !EM_CC!. Here, the issue is that !EM_CC! is truncated to some default length and so couldnt deliver mail to the rest of the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using LRECL= option(in the FILENAME statement) to increase the record length, which didnt work for me. I doubt if this option is specific to the external files only. &lt;/P&gt;&lt;P&gt;Any ideas to resolve or alternative suggestions would be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56447#M12037</guid>
      <dc:creator>pawan</dc:creator>
      <dc:date>2012-02-16T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56448#M12038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link out. It has some info related to this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/techsup/technote/ts605.html"&gt;http://support.sas.com/techsup/technote/ts605.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 22:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56448#M12038</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-16T22:26:32Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56449#M12039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating a Distrubution List with all the email ID's. Usually bigger organizations have the capabilty to create DG list for emails. Paste the DG name in the code and it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 22:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56449#M12039</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-16T22:30:41Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56450#M12040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hima, This is what we are trying as of now. But I'm looking for a permanent solution, where we can increase the length of the string to accept all email IDs.. let me know if U've any ideas..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we've around 100 jobs to run... itz very difficult for us to create so many DGs.. Hope U can understand..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 08:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56450#M12040</guid>
      <dc:creator>pawan</dc:creator>
      <dc:date>2012-02-18T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56451#M12041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give an estimate of the limit that you are hitting?&lt;/P&gt;&lt;P&gt;How many addresses are you talking about?&amp;nbsp; What is the total length of the addresses?&lt;/P&gt;&lt;P&gt;Does it work any differently when you use code generation to put the list into the CC= option instead of generating it with !EM directives?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 15:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56451#M12041</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-18T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56452#M12042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know what the limitations are for the Address, CC and the various EM_ fields?&amp;nbsp; Interestingly, the documentation doesn't appear to mention anything about limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 00:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56452#M12042</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-19T00:32:30Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56453#M12043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Tom, my addresses are not fixed... these will vary from report to report... I can say that, as I found, mails are not being generated for those IDs that are in the list after 256 characters... my list went on to 600 to 1080 characters for diff requirements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a macro variable to put the list into the cc=, nothing more.. any help?!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 04:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56453#M12043</guid>
      <dc:creator>pawan</dc:creator>
      <dc:date>2012-02-19T04:04:10Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56454#M12044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could always read your emails, one by one, in a loop that executes your code inserting each address and sending the email before getting the next one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 05:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56454#M12044</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-19T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56455#M12045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Runs some experiments to test the limits.&lt;/P&gt;&lt;P&gt;You do not have to place the code all on one line of the program.&lt;/P&gt;&lt;P&gt;For example you could create a file name with more that 300 email addresses using your text editor and try using it to send a test message.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002058232.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002058232.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename testmail email 'me@myhost' cc=&lt;/P&gt;&lt;P&gt;("id1@address1"&lt;/P&gt;&lt;P&gt;&amp;nbsp; "id2@address2"&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That format is easy to generate with a data step from your database of addresses.&lt;/P&gt;&lt;P&gt;filename code temp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cclist end=eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if _n_=1 then put 'filename testmail email '&amp;nbsp; email $quote. 'cc=' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else put ' ' email $quote. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if eof then put ');';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also try sending an email with your normal email tool and see if the limit is in your mail server instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 16:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56455#M12045</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-19T16:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with email ID list for EMAIL engine in FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56456#M12046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an idea, I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I will import an excel file that has the email addresses to tblEmail and then email all the addresses in tblEmail I will assume that the column name for the email address is Email. I dont have SAS at home so I cant test this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* if you have a table with the email addresses then you dont need this */&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;/P&gt;&lt;P&gt;OUT = WORK.IMPORT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* CREATE THE TABLE TO IMPORT THE DATA INTO */&lt;/P&gt;&lt;P&gt;DATAFILE = "C:\DATA.XLS"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* EXCEL FILE TO IMPORT */&lt;/P&gt;&lt;P&gt;REPLACE; /* REPLACE THE TABLE IF IT IS ALREADY THERE /*&lt;/P&gt;&lt;P&gt;SHEET = "SHEET1"; /* THE NAME OF THE SHEET TO IMPORT */&lt;/P&gt;&lt;P&gt;GETNAMES=YES; /* COLUMN HEADERS */&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* let send out the email to everyone */&lt;/P&gt;&lt;P&gt;FILENAME OUTBOX EMAIL;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;SET WORK.IMPORT END =EOF;&lt;/P&gt;&lt;P&gt;FILE OUTBOX&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:YOU@YOU.COM"&gt;YOU@YOU.COM&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUBJECT = "HOPE THIS WORKS!"&lt;/P&gt;&lt;P&gt;TYPE = "TEXT/HTML";&lt;/P&gt;&lt;P&gt;PUT '!EM_TO!' EMAIL;&lt;/P&gt;&lt;P&gt;PUT "Hello!";&lt;/P&gt;&lt;P&gt;PUT "&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";&lt;/P&gt;&lt;P&gt;PUT "I hope this works out for you.";&lt;/P&gt;&lt;P&gt;PUT '!EM_SEND!' / '!EM_NEWMSG!';&lt;/P&gt;&lt;P&gt;IF EOF THEN PUT '!EM_ABORT!';&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should send an email to each person seperatly until it reaches the end of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your getting the pop-up that asks your permission to send a email with outlook you need to adjust your SASV9.CFG file for SMTP instead of outlook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right above the area in the file that says something like:&lt;/P&gt;&lt;P&gt;/*--------------------------------------------------------------------------------\&lt;/P&gt;&lt;P&gt;| Warning: Install Application edits below this line. User&amp;nbsp; |&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options should be added above ths comment | &lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; box.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what you want to add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Note: Sets up email to use SMTP */&lt;/P&gt;&lt;P&gt;-emailsys SMTP&lt;/P&gt;&lt;P&gt;-emailhost EXCHANGEHOST.WHATEVER.WHATEVER.COM /* put your exchange server info here */&lt;/P&gt;&lt;P&gt;-emailport 25 /* 25 works for me, might have to check with your admin */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 00:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-email-ID-list-for-EMAIL-engine-in-FILENAME-statement/m-p/56456#M12046</guid>
      <dc:creator>JonS_</dc:creator>
      <dc:date>2012-02-22T00:54:10Z</dc:date>
    </item>
  </channel>
</rss>

