<?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: Multiple output to filename email in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/931#M455</link>
    <description>Perfect, thank you! /jenny

&lt;BR /&gt;
Message was edited by: Jennys at Jun 30, 2006 9:59 AM&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Jun 2006 11:42:41 GMT</pubDate>
    <dc:creator>Jennys</dc:creator>
    <dc:date>2006-06-30T11:42:41Z</dc:date>
    <item>
      <title>Multiple output to filename email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/929#M453</link>
      <description>Hi. &lt;BR /&gt;
&lt;BR /&gt;
I wan´t to send multiple output to an email, with filename email. It seem that every datastep/proc generates a new email. Is there a way to append output to a single email, without using attachments?&lt;BR /&gt;
&lt;BR /&gt;
Following generates 2 email, one with the text and the other one with graph:&lt;BR /&gt;
&lt;BR /&gt;
/* -------------------------------------- */&lt;BR /&gt;
&lt;BR /&gt;
data testdata;&lt;BR /&gt;
  do mid=1 to 5;&lt;BR /&gt;
    resp=RANUNI(0);&lt;BR /&gt;
    output;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
filename outbox email&lt;BR /&gt;
        to=to@domail.com'&lt;BR /&gt;
        type='text/html'&lt;BR /&gt;
        subject='churn report in HTML format'&lt;BR /&gt;
        ;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  file outbox;&lt;BR /&gt;
  put 'Here I will put a html table';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html body=outbox &lt;BR /&gt;
         rs=none;&lt;BR /&gt;
	 options dev = activex;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data = testdata;&lt;BR /&gt;
  vbar mid / discrete SUMVAR=RESP PATTERNID=MIDPOINT;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;BR /&gt;
filename outbox clear;</description>
      <pubDate>Fri, 30 Jun 2006 07:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/929#M453</guid>
      <dc:creator>Jennys</dc:creator>
      <dc:date>2006-06-30T07:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple output to filename email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/930#M454</link>
      <description>Hi Jenny.&lt;BR /&gt;
&lt;BR /&gt;
Something you show consider is putting everything into one single ODS HTML ... ODS HTML CLOSE block, even your Data steps.&lt;BR /&gt;
In your example, it turns into this :&lt;BR /&gt;
&lt;BR /&gt;
data testdata;&lt;BR /&gt;
  do mid=1 to 5;&lt;BR /&gt;
    resp=RANUNI(0);&lt;BR /&gt;
    output;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
filename outbox email&lt;BR /&gt;
        to=to@domail.com'&lt;BR /&gt;
        type='text/html'&lt;BR /&gt;
        subject='churn report in HTML format'&lt;BR /&gt;
        ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ods html body=outbox &lt;BR /&gt;
         rs=none;&lt;/B&gt; &lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  file &lt;B&gt;&lt;I&gt;print&lt;/I&gt;&lt;/B&gt; ;&lt;BR /&gt;
  put 'Here I will put a html table';&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
options dev = activex;&lt;BR /&gt;
&lt;BR /&gt;
proc gchart data = testdata;&lt;BR /&gt;
  vbar mid / discrete SUMVAR=RESP&lt;BR /&gt;
  P PATTERNID=MIDPOINT;&lt;BR /&gt;
run; quit ;&lt;BR /&gt;
 &lt;BR /&gt;
ods html close;&lt;BR /&gt;
filename outbox clear;&lt;BR /&gt;
&lt;BR /&gt;
It seems to work on my computer (SAS 9.1.3 SP3). Does it solve your problem ?&lt;BR /&gt;
&lt;BR /&gt;
Olivier Decourt&lt;BR /&gt;
Training &amp;amp; consulting on SAS software and statistical topics&lt;BR /&gt;
France</description>
      <pubDate>Fri, 30 Jun 2006 08:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/930#M454</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-06-30T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple output to filename email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/931#M455</link>
      <description>Perfect, thank you! /jenny

&lt;BR /&gt;
Message was edited by: Jennys at Jun 30, 2006 9:59 AM&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 11:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Multiple-output-to-filename-email/m-p/931#M455</guid>
      <dc:creator>Jennys</dc:creator>
      <dc:date>2006-06-30T11:42:41Z</dc:date>
    </item>
  </channel>
</rss>

