<?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 send email from sas - text+report in body in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969058#M376716</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to send an email from SAS with :&lt;/P&gt;
&lt;P&gt;1- body text in email&lt;/P&gt;
&lt;P&gt;2- Report in body (Not attach file )&lt;/P&gt;
&lt;P&gt;This code doesn't create both text and report in body.&lt;/P&gt;
&lt;P&gt;what is the way to do it please??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME temp EMAIL 
from="JOE@gmail.com"
TO=("JOE@gmail.com")
SUBJECT="CAR REPORT"
CONTENT_TYPE="text/html" ;
ODS LISTING CLOSE;
ODS html body=temp;


ods html body=temp rs=none style=HTMLBlue ;
data _null_;
file mail;
put 'HELLO';
put "HERE IS CAR REPORT";
put ' ';

put 'Regards,Joe';
run;

title;
proc print data=sashelp.cars(where=(upcase(make)='AUDI')) noobs;Run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 15 Jun 2025 09:28:13 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-06-15T09:28:13Z</dc:date>
    <item>
      <title>send email from sas - text+report in body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969058#M376716</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to send an email from SAS with :&lt;/P&gt;
&lt;P&gt;1- body text in email&lt;/P&gt;
&lt;P&gt;2- Report in body (Not attach file )&lt;/P&gt;
&lt;P&gt;This code doesn't create both text and report in body.&lt;/P&gt;
&lt;P&gt;what is the way to do it please??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME temp EMAIL 
from="JOE@gmail.com"
TO=("JOE@gmail.com")
SUBJECT="CAR REPORT"
CONTENT_TYPE="text/html" ;
ODS LISTING CLOSE;
ODS html body=temp;


ods html body=temp rs=none style=HTMLBlue ;
data _null_;
file mail;
put 'HELLO';
put "HERE IS CAR REPORT";
put ' ';

put 'Regards,Joe';
run;

title;
proc print data=sashelp.cars(where=(upcase(make)='AUDI')) noobs;Run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Jun 2025 09:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969058#M376716</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-15T09:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: send email from sas - text+report in body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969059#M376717</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p14gx25pepks6dn1q9m7vkq3gfoi.htm" target="_blank" rel="noopener"&gt;ODS TEXT&lt;/A&gt;&amp;nbsp;to insert free-form text in an ODS stream.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 10:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969059#M376717</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-06-15T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: send email from sas - text+report in body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969074#M376723</link>
      <description>&lt;P&gt;Try &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/n0ig2krarrz6vtn1aw9zzvtez4qo.htm#n0pzwqzkm94712n1kmdhk9fpfarg" target="_blank" rel="noopener"&gt;example 3 in the SAS documentation&lt;/A&gt;. Does this work? If not post your complete SAS log.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 01:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-email-from-sas-text-report-in-body/m-p/969074#M376723</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-06-16T01:02:08Z</dc:date>
    </item>
  </channel>
</rss>

