<?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: Combine html reports into one email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805235#M317180</link>
    <description>&lt;P&gt;Move the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;statement after the final report. Closing the destination causes the mail to be sent.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 10:31:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-03-31T10:31:57Z</dc:date>
    <item>
      <title>Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805232#M317177</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to combine various HTML reports into one email with different headings, one saying 'update 1' then the table, then 'update 2' then the table however they currently arriving in my inbox as seperate emails. See code below&lt;/P&gt;
&lt;PRE&gt;
FILENAME MailBox EMAIL
TO=(jackie@gmail.com)
FROM='horat@gmail.com'
type='text/html'
SUBJECT='Update to tables';

ODS html body=Mailbox style = noline;
ods html text = "Update1";
ods html text = "";
ods listing close;
PROC REPORT DATA=WORK.updates nowd HEADLINE HEADSKIP
style (report) = {background = white
font_face = "Verdana" font_size = 7pt just=left bordercolor=grey rules=All frame=box}
style (column) = {background = white CELLHEIGHT = 2.5%
font_face = "Verdana" font_size = 7pt just=left }
style (header) = {foreground = cx5e2750 font_face="Verdana"
font_size = 8pt just=left
};
columns _All_;
run;
ods html close;

PROC REPORT DATA=WORK.updates2 nowd HEADLINE HEADSKIP
style (report) = {background = white
font_face = "Verdana" font_size = 7pt just=left bordercolor=grey rules=All frame=box}
style (column) = {background = white CELLHEIGHT = 2.5%
font_face = "Verdana" font_size = 7pt just=left }
style (header) = {foreground = cx5e2750 font_face="Verdana"
font_size = 8pt just=left
};
columns _All_;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 10:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805232#M317177</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2022-03-31T10:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805235#M317180</link>
      <description>&lt;P&gt;Move the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;statement after the final report. Closing the destination causes the mail to be sent.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 10:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805235#M317180</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-31T10:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805242#M317185</link>
      <description>thank you however still only getting the one table and not the second table</description>
      <pubDate>Thu, 31 Mar 2022 11:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805242#M317185</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2022-03-31T11:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805245#M317188</link>
      <description>Hi:&lt;BR /&gt;  Since many mail systems prohibit sending or receiving HTML formatted email, I would recommend making a PDF file for your two reports -- a single PDF can contain multiple PROC REPORT output and you can insert explanatory text into the PDF file between the reports. Then you can send the PDF file as an attachment. This may be a better approach in the long run because it will simplify the text in the body of the email and push the report formatting into the PDF file.&lt;BR /&gt;  That's my .02 on your email approach,&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 31 Mar 2022 12:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805245#M317188</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-03-31T12:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805247#M317189</link>
      <description>&lt;P&gt;hi, thank you however we want the table to be to the eye when opening the mail and not have it in a PDF doc&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805247#M317189</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2022-03-31T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805298#M317206</link>
      <description>&lt;P&gt;Post your complete log, from the ODS HTML statement to the ODS HTML CLOSE statement, including all messages coming after the ODS HTML CLOSE.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 14:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805298#M317206</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-31T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine html reports into one email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805303#M317210</link>
      <description>&lt;P&gt;This simple example code results in a single mail with two reports:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mm
  email
  to="redacted@domain.com"
  subject="SAS mail"
  type="text/html"
;

ods html file=mm;

proc report data=sashelp.class;
column sex name age;
define sex / group;
define name / display;
define age / mean;
rbreak after / summarize;
run;

proc report data=sashelp.class;
column sex weight;
define sex / group;
define weight / mean;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2022 14:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-html-reports-into-one-email/m-p/805303#M317210</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-31T14:29:44Z</dc:date>
    </item>
  </channel>
</rss>

