<?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: SAS Email from mainframe with body and a PDS as an attachment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/620494#M182339</link>
    <description>&lt;P&gt;how do i do that?. I am new to this blog );&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 13:56:15 GMT</pubDate>
    <dc:creator>Phil20</dc:creator>
    <dc:date>2020-01-28T13:56:15Z</dc:date>
    <item>
      <title>SAS Email from mainframe with body and a PDS as an attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619197#M181743</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;I need help on building a SAS job to send an email from mainframe. The email has 2-3 lines of content and an attachment. The attachment is a PDS file to attach as a text file. I was able to send mail without attachment. but the attachment part not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//xxxxxxx JOB MSGCLASS=J,MSGLEVEL=1,NOTIFY=&amp;amp;SYSUID&lt;BR /&gt;//SAS9 EXEC SAS&lt;BR /&gt;FILENAME MAILBOX EMAIL;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE MAILBOX TO=('xxxxxxx@xxxxx.com')&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;SUBJECT='MONTHLY FILE';&lt;BR /&gt;PUT "Hello xxxx,";&lt;BR /&gt;PUT " ";&lt;BR /&gt;PUT "This is to inform you that xxxxxxxxxxxxxxxxxx.";&lt;BR /&gt;PUT "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.";&lt;BR /&gt;PUT " ";&lt;BR /&gt;PUT "Best regards,";&lt;BR /&gt;PUT "xxxxxxxxxxxxxxxxxxxx";&lt;BR /&gt;RUN;&lt;BR /&gt;//*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 15:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619197#M181743</guid>
      <dc:creator>Phil20</dc:creator>
      <dc:date>2020-01-22T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email from mainframe with body and a PDS as an attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619211#M181744</link>
      <description>&lt;P&gt;I think the normal style is to put the email options in the FILENAME statement, rather than in the FILE statement, e.g.:&lt;/P&gt;
&lt;PRE&gt;//xxxxxxx JOB MSGCLASS=J,MSGLEVEL=1,NOTIFY=&amp;amp;SYSUID
//SAS9 EXEC SAS
FILENAME MAILBOX EMAIL TO=('xxxxxxx@xxxxx.com') SUBJECT='MONTHLY FILE' attach="user.misc.pds(member)";
DATA _NULL_;
FILE MAILBOX;
PUT "Hello xxxx,";
PUT " ";
PUT "This is to inform you that xxxxxxxxxxxxxxxxxx.";
PUT "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.";
PUT " ";
PUT "Best regards,";
PUT "xxxxxxxxxxxxxxxxxxxx";
RUN;
//*&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 16:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619211#M181744</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-01-22T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email from mainframe with body and a PDS as an attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619282#M181779</link>
      <description>&lt;P&gt;Thank you so much Lasen&lt;/P&gt;&lt;P&gt;It worked exactly as I expected. you made my day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 19:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619282#M181779</guid>
      <dc:creator>Phil20</dc:creator>
      <dc:date>2020-01-22T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email from mainframe with body and a PDS as an attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619427#M181849</link>
      <description>Then I think you should mark my suggestion as a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/619427#M181849</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-01-23T07:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email from mainframe with body and a PDS as an attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/620494#M182339</link>
      <description>&lt;P&gt;how do i do that?. I am new to this blog );&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Email-from-mainframe-with-body-and-a-PDS-as-an-attachment/m-p/620494#M182339</guid>
      <dc:creator>Phil20</dc:creator>
      <dc:date>2020-01-28T13:56:15Z</dc:date>
    </item>
  </channel>
</rss>

