<?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 How to attach multiple .pdf in SAS mail through SAS macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707612#M217280</link>
    <description>&lt;P&gt;proc sql noprint;&lt;BR /&gt;select count(file)into :cnt from new_file;&lt;BR /&gt;select email_id into :email_id from ack;&lt;BR /&gt;select cat into :cat from want;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;cat.;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro Mail_S;&lt;BR /&gt;%if &amp;amp;cnt %gt 0 %then %do;&lt;BR /&gt;OPTIONS EMAILSYS=SMTP EMAILHOST=intramail.cis.cat.com EMAILID="abc@com";&lt;BR /&gt;FILENAME BLAT EMAIL&lt;BR /&gt;FROM = ( "Abc@com" )&lt;BR /&gt;TO = ( "Abc@com" )&lt;BR /&gt;cc = ("Abc@com")&lt;BR /&gt;SUBJECT = ( "New Order Acknowledgement -(&amp;amp;sysdate9.)")&lt;BR /&gt;ATTACH = ( &amp;amp;cat. ct='application/octet-stream' )&lt;BR /&gt;TYPE = "TEXT/HTML"&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE BLAT;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;&amp;lt;BODY&amp;gt;';&lt;BR /&gt;put "Hi Team,&amp;lt;BR&amp;gt;";&lt;BR /&gt;put "&amp;amp;emsp; recieved on &amp;amp;sysdate9..&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put 'If you have any questions,&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;put "Thank You, &amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put "Team&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put '&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend Mail_s;&lt;/P&gt;&lt;P&gt;%mail_s;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When ever i send using above code, only one pdf file is able to open , remaining file will not be opened , please help me to figure out thisissue&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 07:05:28 GMT</pubDate>
    <dc:creator>Sharath_naik</dc:creator>
    <dc:date>2020-12-22T07:05:28Z</dc:date>
    <item>
      <title>How to attach multiple .pdf in SAS mail through SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707612#M217280</link>
      <description>&lt;P&gt;proc sql noprint;&lt;BR /&gt;select count(file)into :cnt from new_file;&lt;BR /&gt;select email_id into :email_id from ack;&lt;BR /&gt;select cat into :cat from want;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%put &amp;amp;cat.;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro Mail_S;&lt;BR /&gt;%if &amp;amp;cnt %gt 0 %then %do;&lt;BR /&gt;OPTIONS EMAILSYS=SMTP EMAILHOST=intramail.cis.cat.com EMAILID="abc@com";&lt;BR /&gt;FILENAME BLAT EMAIL&lt;BR /&gt;FROM = ( "Abc@com" )&lt;BR /&gt;TO = ( "Abc@com" )&lt;BR /&gt;cc = ("Abc@com")&lt;BR /&gt;SUBJECT = ( "New Order Acknowledgement -(&amp;amp;sysdate9.)")&lt;BR /&gt;ATTACH = ( &amp;amp;cat. ct='application/octet-stream' )&lt;BR /&gt;TYPE = "TEXT/HTML"&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE BLAT;&lt;BR /&gt;PUT '&amp;lt;HTML&amp;gt;&amp;lt;BODY&amp;gt;';&lt;BR /&gt;put "Hi Team,&amp;lt;BR&amp;gt;";&lt;BR /&gt;put "&amp;amp;emsp; recieved on &amp;amp;sysdate9..&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put 'If you have any questions,&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;';&lt;BR /&gt;put "Thank You, &amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put "Team&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;put '&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;';&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend Mail_s;&lt;/P&gt;&lt;P&gt;%mail_s;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When ever i send using above code, only one pdf file is able to open , remaining file will not be opened , please help me to figure out thisissue&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 07:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707612#M217280</guid>
      <dc:creator>Sharath_naik</dc:creator>
      <dc:date>2020-12-22T07:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach multiple .pdf in SAS mail through SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707633#M217288</link>
      <description>&lt;P&gt;Show the data you have for tables NEW_FILE, ACK, and WANT&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 11:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707633#M217288</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-12-22T11:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to attach multiple .pdf in SAS mail through SAS macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707643#M217293</link>
      <description>&lt;P&gt;Create a correct list of files to be attached:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select quote(strip(cat)) into :cat separated by " " from want;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and you'll get a list of quoted filenames as described in the documentation of &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n0ig2krarrz6vtn1aw9zzvtez4qo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILENAME EMAIL&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 12:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-attach-multiple-pdf-in-SAS-mail-through-SAS-macro/m-p/707643#M217293</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-22T12:02:03Z</dc:date>
    </item>
  </channel>
</rss>

