<?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 EMAIL WITh PDF ATTACHMENT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/EMAIL-WITh-PDF-ATTACHMENT/m-p/672726#M202206</link>
    <description>&lt;P&gt;I am triggering a email using SAS. Email is coming with attachment, but email body content is missing, any help??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* ----------------- */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* E-mail the report */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* ----------------- */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;filename mymail email "xxxxxxxxx&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;.com'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;subject=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;dsetname. vendor data upload report"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;type=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"text/pdf"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;attach=(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;client_drop_zone./log/&amp;amp;dsetname..pdf"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; content_type=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'application/pdf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; extension=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'pdf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;errrcnt eq &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file mymail;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Here is the latest &amp;amp;dsetname. vendor data upload report. The job ran to completion, and external vendor data moved to study folder successfully"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put _all_; run; &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file mymail;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Here is the latest &amp;amp;dsetname. vendor data upload report. External vendor data transfer failed"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put _all_; run;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Log looks all ok&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message sent&lt;/P&gt;&lt;P&gt;To: "xxxxx@.com"&lt;/P&gt;&lt;P&gt;Cc:&lt;/P&gt;&lt;P&gt;Bcc:&lt;/P&gt;&lt;P&gt;Subject: xxxxxxx_xxx_lab_20200724 vendor data upload report&lt;/P&gt;&lt;P&gt;Attachments: ( "/sasdata/un0101/projects/zi/zitest/eds/dev/rawdata/di/rawdata/log/xxxxxxx_20200724.pdf" CONTENT_TYPE = 'application/pdf' EXTENSION = 'pdf' )&lt;/P&gt;&lt;P&gt;NOTE: 2 records were written to the file MYMAIL.&lt;/P&gt;&lt;P&gt;The minimum record length was 15.&lt;/P&gt;&lt;P&gt;The maximum record length was 112.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.19 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 03:07:45 GMT</pubDate>
    <dc:creator>AK_07</dc:creator>
    <dc:date>2020-07-28T03:07:45Z</dc:date>
    <item>
      <title>EMAIL WITh PDF ATTACHMENT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EMAIL-WITh-PDF-ATTACHMENT/m-p/672726#M202206</link>
      <description>&lt;P&gt;I am triggering a email using SAS. Email is coming with attachment, but email body content is missing, any help??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* ----------------- */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* E-mail the report */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#008000"&gt;/* ----------------- */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;filename mymail email "xxxxxxxxx&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;.com'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;subject=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;dsetname. vendor data upload report"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;type=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"text/pdf"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;attach=(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;client_drop_zone./log/&amp;amp;dsetname..pdf"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; content_type=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'application/pdf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; extension=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'pdf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;errrcnt eq &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file mymail;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Here is the latest &amp;amp;dsetname. vendor data upload report. The job ran to completion, and external vendor data moved to study folder successfully"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put _all_; run; &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file mymail;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;put &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"Here is the latest &amp;amp;dsetname. vendor data upload report. External vendor data transfer failed"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;put _all_; run;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Log looks all ok&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message sent&lt;/P&gt;&lt;P&gt;To: "xxxxx@.com"&lt;/P&gt;&lt;P&gt;Cc:&lt;/P&gt;&lt;P&gt;Bcc:&lt;/P&gt;&lt;P&gt;Subject: xxxxxxx_xxx_lab_20200724 vendor data upload report&lt;/P&gt;&lt;P&gt;Attachments: ( "/sasdata/un0101/projects/zi/zitest/eds/dev/rawdata/di/rawdata/log/xxxxxxx_20200724.pdf" CONTENT_TYPE = 'application/pdf' EXTENSION = 'pdf' )&lt;/P&gt;&lt;P&gt;NOTE: 2 records were written to the file MYMAIL.&lt;/P&gt;&lt;P&gt;The minimum record length was 15.&lt;/P&gt;&lt;P&gt;The maximum record length was 112.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;real time 0.19 seconds&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 03:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EMAIL-WITh-PDF-ATTACHMENT/m-p/672726#M202206</guid>
      <dc:creator>AK_07</dc:creator>
      <dc:date>2020-07-28T03:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: EMAIL WITh PDF ATTACHMENT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/EMAIL-WITh-PDF-ATTACHMENT/m-p/672731#M202209</link>
      <description>&lt;P&gt;Try removing the TYPE= option.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 04:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/EMAIL-WITh-PDF-ATTACHMENT/m-p/672731#M202209</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-28T04:42:53Z</dc:date>
    </item>
  </channel>
</rss>

