<?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 Displaying SAS Output as a Table in the Email Body in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Displaying-SAS-Output-as-a-Table-in-the-Email-Body/m-p/989938#M380245</link>
    <description>&lt;P&gt;I know how to send emails using the FILENAME EMAIL statement in SAS. However, I'm looking for guidance on displaying a SAS dataset as a &lt;STRONG&gt;formatted table&lt;/STRONG&gt; directly in the &lt;STRONG&gt;email body&lt;/STRONG&gt;?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2026 11:55:25 GMT</pubDate>
    <dc:creator>hasnasherin</dc:creator>
    <dc:date>2026-06-21T11:55:25Z</dc:date>
    <item>
      <title>Displaying SAS Output as a Table in the Email Body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-SAS-Output-as-a-Table-in-the-Email-Body/m-p/989938#M380245</link>
      <description>&lt;P&gt;I know how to send emails using the FILENAME EMAIL statement in SAS. However, I'm looking for guidance on displaying a SAS dataset as a &lt;STRONG&gt;formatted table&lt;/STRONG&gt; directly in the &lt;STRONG&gt;email body&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2026 11:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-SAS-Output-as-a-Table-in-the-Email-Body/m-p/989938#M380245</guid>
      <dc:creator>hasnasherin</dc:creator>
      <dc:date>2026-06-21T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying SAS Output as a Table in the Email Body</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Displaying-SAS-Output-as-a-Table-in-the-Email-Body/m-p/989970#M380248</link>
      <description>&lt;P&gt;You can format your email using ODS and HTML. See the examples in&amp;nbsp;&lt;LI-MESSAGE title="How to send email using SAS" uid="746523" url="https://communities.sas.com/t5/SAS-Communities-Library/How-to-send-email-using-SAS/m-p/746523#U746523" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Excerpt:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;FILENAME OUTPUT EMAIL
	SUBJECT = "blogs.sas.com: &amp;amp;postCount posts, 
                  &amp;amp;commentCount comments"
	FROM = "Chris Hemedinger &amp;lt;chris.blogger@sas.com&amp;gt;"
	TO = (&amp;amp;toList)
	CT ='text/html';

ods tagsets.msoffice2k(id=email)
  file=OUTPUT(title="7-day blog report")
  style=myemail;

proc report nowd data=pastweek;
  title "&amp;amp;postCount blogs.sas.com posts";
  title2 color=red "NOTE: " color=blue "View counts are sourced from Google Analytics";
  columns post_date post_author blog_ID post_link ga_views comment_count ;
  define post_date / group order=data 'Date posted' style(column)=[just=l];
  define post_author / order 'Author' style(column)=[just=l];
...
run;
ods tagsets.msoffice2k(id=email) close;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 13:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Displaying-SAS-Output-as-a-Table-in-the-Email-Body/m-p/989970#M380248</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2026-06-22T13:50:29Z</dc:date>
    </item>
  </channel>
</rss>

