<?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 Extracting CSV email attachments into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373848#M276267</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have in the past used SAS functionality to send emails from SAS with an attachment via Outlook automatically. Is it possible to extract attachments from emails in Outlook into SAS? If so, please could you point me into the right direction on how to learn more about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 07:28:02 GMT</pubDate>
    <dc:creator>cmoore</dc:creator>
    <dc:date>2017-07-07T07:28:02Z</dc:date>
    <item>
      <title>Extracting CSV email attachments into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373848#M276267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have in the past used SAS functionality to send emails from SAS with an attachment via Outlook automatically. Is it possible to extract attachments from emails in Outlook into SAS? If so, please could you point me into the right direction on how to learn more about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 07:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373848#M276267</guid>
      <dc:creator>cmoore</dc:creator>
      <dc:date>2017-07-07T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting CSV email attachments into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373851#M276268</link>
      <description>&lt;P&gt;Since you need to do a base64 conversion on the attachment, you will have to use external tools for that. In SAS you'd be limited by the maximum size of a character variable (32767), so the internal functions/formats would be useless for most files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SAS to extract the base64-encoded MIME parts from the HTML stream (as that is pure text), and then run the external utility against the parts to create the real attachment files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best solution is to avoid mail attachments for data transfer altogether. Retrieving data from URLs or FTP sites is comparatively easier in SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 07:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373851#M276268</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-07T07:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting CSV email attachments into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373853#M276269</link>
      <description>&lt;P&gt;Thanks very much for your thoughts&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-CSV-email-attachments-into-SAS/m-p/373853#M276269</guid>
      <dc:creator>cmoore</dc:creator>
      <dc:date>2017-07-07T08:06:18Z</dc:date>
    </item>
  </channel>
</rss>

