<?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 Mainframe email problem that I can't seem to fix, help appreciated. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49630#M6382</link>
    <description>Okay, the problem is that I have to send an e-mail with a subject line and a message in the body.  But when I run my job it sends two e-mails and I only want one.  Here's my JCL:&lt;BR /&gt;
FILENAME OUTBOX EMAIL                         &lt;BR /&gt;
TO=('person@msn.com')             &lt;BR /&gt;
SUBJECT='email test' &lt;BR /&gt;
CT='TEXT/HTML';                               &lt;BR /&gt;
*----------------------------;                &lt;BR /&gt;
DATA _NULL_;                                  &lt;BR /&gt;
FILE OUTBOX; &lt;BR /&gt;
PUT '!EM_SUBJECT! email test';&lt;BR /&gt;
PUT 'message in the body of email';          &lt;BR /&gt;
*----------------------------;                &lt;BR /&gt;
ODS HTML BODY=OUTBOX        &lt;BR /&gt;
 STYLE=MINIMAL                                &lt;BR /&gt;
 RS=NONE;                                     &lt;BR /&gt;
ODS HTML CLOSE;                               &lt;BR /&gt;
/*                                            &lt;BR /&gt;
I've tried it using the e-mail address on the filename statement, and using the PUT statement is the only way I know to put a message in the body of the e-mail.  But when I do this it produces two e-mails.  So what can I do to only send one e-mail that will have both a subject and a body?</description>
    <pubDate>Wed, 24 Sep 2008 19:52:52 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-09-24T19:52:52Z</dc:date>
    <item>
      <title>Mainframe email problem that I can't seem to fix, help appreciated.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49630#M6382</link>
      <description>Okay, the problem is that I have to send an e-mail with a subject line and a message in the body.  But when I run my job it sends two e-mails and I only want one.  Here's my JCL:&lt;BR /&gt;
FILENAME OUTBOX EMAIL                         &lt;BR /&gt;
TO=('person@msn.com')             &lt;BR /&gt;
SUBJECT='email test' &lt;BR /&gt;
CT='TEXT/HTML';                               &lt;BR /&gt;
*----------------------------;                &lt;BR /&gt;
DATA _NULL_;                                  &lt;BR /&gt;
FILE OUTBOX; &lt;BR /&gt;
PUT '!EM_SUBJECT! email test';&lt;BR /&gt;
PUT 'message in the body of email';          &lt;BR /&gt;
*----------------------------;                &lt;BR /&gt;
ODS HTML BODY=OUTBOX        &lt;BR /&gt;
 STYLE=MINIMAL                                &lt;BR /&gt;
 RS=NONE;                                     &lt;BR /&gt;
ODS HTML CLOSE;                               &lt;BR /&gt;
/*                                            &lt;BR /&gt;
I've tried it using the e-mail address on the filename statement, and using the PUT statement is the only way I know to put a message in the body of the e-mail.  But when I do this it produces two e-mails.  So what can I do to only send one e-mail that will have both a subject and a body?</description>
      <pubDate>Wed, 24 Sep 2008 19:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49630#M6382</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-24T19:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe email problem that I can't seem to fix, help appreciated.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49631#M6383</link>
      <description>Refer to the SAS 9.2 DOC on this topic - link below.  Also, there are several similar topic-related technical papers and SAS supplemental tips technotes on the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; for your reference.&lt;BR /&gt;
&lt;BR /&gt;
Also, be aware that are known SAS 9.1.3 SP1 problems where multiple EMAILs are generated, one that is blank and a second that has the desired output, but only when using ODS LISTING, as I recall.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002058232.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/59540/HTML/default/a002058232.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hosto390/59577/HTML/default/chfnoptfmain.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hosto390/59577/HTML/default/chfnoptfmain.htm&lt;/A&gt;</description>
      <pubDate>Wed, 24 Sep 2008 20:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49631#M6383</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-24T20:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe email problem that I can't seem to fix, help appreciated.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49632#M6384</link>
      <description>Thanks.  &lt;BR /&gt;
I wasn't getting any blank e-mails, but you did give me the idea of removing the ODS part of my JCL and when I did that, It only sent one e-mail.  So thanks again.</description>
      <pubDate>Wed, 24 Sep 2008 21:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Mainframe-email-problem-that-I-can-t-seem-to-fix-help/m-p/49632#M6384</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-24T21:06:08Z</dc:date>
    </item>
  </channel>
</rss>

