<?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: ODS output in the body of an email in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2123#M942</link>
    <description>Please clarify "..manually stop the programme."?  The SAS program you have shown appears to be self-contained.  I would expect this code to terminate.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 06 May 2009 16:34:47 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-06T16:34:47Z</dc:date>
    <item>
      <title>ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2114#M933</link>
      <description>I'm trying to figure out a way to send 'ods html' output in the body of an email (&lt;B&gt;not as an attachment&lt;/B&gt;).&lt;BR /&gt;
I'd like to use the email function so that an "anything.html" file created through ods is read as the &lt;B&gt;source file&lt;/B&gt; for an email sent through the SAS program (so that when the email is opened, the html formatting is visible within the email body.)&lt;BR /&gt;
I've searched around for awhile, but I can't find any examples of this out there. Any help or suggestion is appreciated.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Joe</description>
      <pubDate>Tue, 16 Jan 2007 20:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2114#M933</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-01-16T20:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2115#M934</link>
      <description>Hi:&lt;BR /&gt;
  If you go to the online doc and type "email" into the search field, you should find a list of topics related to the FILENAME statement. When all the hits come up, look for a topic with this title:&lt;BR /&gt;
"Statements: FILENAME Statement, EMAIL (SMTP) Access Method". &lt;BR /&gt;
    &lt;BR /&gt;
  In that Help topic, Example 3 is entitled, "Sending Procedure Output in E-mail". The key is using the filename statement with the 'to', 'type' and 'subject' options and the email engine specified. In addition, you have to be sure to specify the RS=NONE option on your ODS invocation.&lt;BR /&gt;
  &lt;BR /&gt;
The example is too long to duplicate here. If you try it out and it doesn't work for you, you might want to contact Tech Support for further help. I believe there are some system options that also have to be set at startup time in order for the email method to work correctly.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 17 Jan 2007 08:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2115#M934</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-01-17T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2116#M935</link>
      <description>Thanks Cynthia - this is exactly what I was looking for. I appreciate your time.&lt;BR /&gt;
Joe</description>
      <pubDate>Wed, 17 Jan 2007 16:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2116#M935</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-01-17T16:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2117#M936</link>
      <description>For anyone else reading this - it was much more consistant for me once I changed to ods markup (SAS documentation uses ods html). The code is below:&lt;BR /&gt;
&lt;BR /&gt;
filename outbox email&lt;BR /&gt;
   to='email@address.com'&lt;BR /&gt;
   type='text/html'&lt;BR /&gt;
   subject='Temperature Conversions';&lt;BR /&gt;
&lt;BR /&gt;
data work.temperatures;&lt;BR /&gt;
   do centigrade = -40 to 100 by 10;&lt;BR /&gt;
      fahrenheit = centigrade*9/5+32;&lt;BR /&gt;
      output;&lt;BR /&gt;
   end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods markup&lt;BR /&gt;
   body=outbox /* Mail it! */&lt;BR /&gt;
   rs=none tagset=tagsets.html4 style=sasweb;&lt;BR /&gt;
&lt;BR /&gt;
title 'Centigrade to Fahrenheit Conversion Table';&lt;BR /&gt;
&lt;BR /&gt;
proc print data=work.temperatures;&lt;BR /&gt;
   id centigrade;&lt;BR /&gt;
   var fahrenheit;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods markup close;</description>
      <pubDate>Thu, 18 Jan 2007 15:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2117#M936</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-01-18T15:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2118#M937</link>
      <description>Both this version and the version in the documentation don't terminate properly on our system. We're using Enterprise Guide on windows connected to SAS 9.2 on Unix.&lt;BR /&gt;
&lt;BR /&gt;
The programme runs without errors and produces the output but doesn't terminate until it is manually stopped.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Wed, 06 May 2009 15:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2118#M937</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-06T15:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2119#M938</link>
      <description>I expect you need to add QUIT;  to your code.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 06 May 2009 15:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2119#M938</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-06T15:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2120#M939</link>
      <description>This has no effect.&lt;BR /&gt;
&lt;BR /&gt;
I've also tried an ods close _all_ statement with similar lack of success.</description>
      <pubDate>Wed, 06 May 2009 15:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2120#M939</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-06T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2121#M940</link>
      <description>FILENAME OUTBOX CLEAR;&lt;BR /&gt;
&lt;BR /&gt;
?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 06 May 2009 16:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2121#M940</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-06T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2122#M941</link>
      <description>If i put that above the ods close statement, i get a warning that no email address is specified. If i put it below, it doesn't clear the filename or send the email until i manually stop the programme.</description>
      <pubDate>Wed, 06 May 2009 16:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2122#M941</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-06T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2123#M942</link>
      <description>Please clarify "..manually stop the programme."?  The SAS program you have shown appears to be self-contained.  I would expect this code to terminate.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 06 May 2009 16:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2123#M942</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-06T16:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2124#M943</link>
      <description>Me too.&lt;BR /&gt;
&lt;BR /&gt;
To stop it, i have to press the "stop" button in enterprise guide.</description>
      <pubDate>Wed, 06 May 2009 16:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2124#M943</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-06T16:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2125#M944</link>
      <description>Suggest you open a SAS support track, rather than attempt to debug this problem through the discussion forum.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 06 May 2009 16:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2125#M944</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-06T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS output in the body of an email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2126#M945</link>
      <description>Resolved. Solution is to add an ods _all_ close statement at the top of the code. The problem is with Enterprise Guide.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/18/635.html" target="_blank"&gt;http://support.sas.com/kb/18/635.html&lt;/A&gt;</description>
      <pubDate>Fri, 08 May 2009 08:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-output-in-the-body-of-an-email/m-p/2126#M945</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-08T08:04:41Z</dc:date>
    </item>
  </channel>
</rss>

