<?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: Embed a pivot table to body of outlook in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176210#M45195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since many mail systems do not allow HTML mail these days, I generally use the method shown in this paper:&lt;A href="http://support.sas.com/resources/papers/proceedings11/300-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/300-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/300-2011.pdf&lt;/A&gt; starting on page 7. I send my ODS files as attachments. That always works very reliably for me. That way I don't have to worry about whether the mail system allows HTML or RTF or PDF format mail or not. If you continue to have issues, you might want to open a track with Tech Support, there are many settings that can only be done at start up that have to be turned on before mail from SAS will work and depending on your OS and your mail client, you may not have the right things set for sending mail no matter which method you use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Feb 2015 15:02:57 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-02-21T15:02:57Z</dc:date>
    <item>
      <title>Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176204#M45189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table that looks like this&lt;/P&gt;&lt;P&gt;id.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code&lt;/P&gt;&lt;P&gt;A1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/01/15.&amp;nbsp;&amp;nbsp;&amp;nbsp; OOC&lt;/P&gt;&lt;P&gt;A2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/01/2015.&amp;nbsp; OOC&lt;/P&gt;&lt;P&gt;A3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/03/15.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P&gt;A4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/04/15.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want create a pivot table in sas looking like this&lt;/P&gt;&lt;P&gt;02/01/15.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/03/15.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02/04/15&lt;/P&gt;&lt;P&gt;OOC.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;DB.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I would like it if I can&amp;nbsp; add the pivot table to the body of outlook &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 04:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176204#M45189</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-02-20T04:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176205#M45190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; A pivot table is an Excel data structure. Do you want to embed an Excel pivot table in Outlook mail or do you just want a SAS report or a table that you can email to someone. Your desired output looks like a report that could easily be produced with either PROC REPORT or PROC TABULATE. But the SAS Report will not be an Excel pivot table. There is an ODS destination that will make a pivot table, but it does so by putting JavaScript into an HTML file. And, some mail programs do not allow script elements in the mail for security reasons. Although SAS mail capability would allow you to mail an attachment as part of a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Otherwise, to embed a Microsoft data structure in a Microsoft mail product would seem to call for Microsoft technology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176205#M45190</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-02-20T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176206#M45191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;your correct i came up with a proc report does exactly that ...now the question how I would be able export that to the body of outlook to be able to email it out ... I have the code to auto email already I would like to know how attach the html output named report which resides in results... I'm playing around with ods but any help would be greatly appreciated &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 18:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176206#M45191</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-02-20T18:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176207#M45192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="51339" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 18:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176207#M45192</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-20T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176208#M45193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P class="page" title="Page 6"&gt;i Have a code so alter to this it creates the report in results but when it runs the output section it doesn't pick it up&lt;/P&gt;&lt;P class="page" title="Page 6"&gt;any thoughts what I'm mmight be missing?&lt;/P&gt;&lt;DIV class="section"&gt;&lt;DIV class="column"&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;FILENAME output EMAIL &lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&lt;SPAN&gt;&amp;nbsp; SUBJECT= "Sales summary report 1" FROM= "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:bob@sas.com"&gt;bob@sas.com&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&lt;SPAN&gt;&amp;nbsp; TO= "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:charlie@sas.com"&gt;charlie@sas.com&lt;/A&gt;&lt;SPAN&gt;" CT= "text/html" /* Required for HTML output */ ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&amp;nbsp; ODS HTML BODY=output STYLE=sasweb; TITLE JUSTIFY=left &lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&amp;nbsp; "Total Sales by Country and Product type as of %sysfunc(date(),yymmdd10.)"; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&amp;nbsp; PROC REPORT DATA=sashelp.prdsale NOWD STYLE(REPORT)=[PREHTML="&amp;lt;hr&amp;gt;"] /*Inserts a rule between title &amp;amp; body*/; COLUMNS COUNTRY PRODTYPE,ACTUAL; DEFINE COUNTRY /GROUP; DEFINE PRODTYPE /ACROSS; DEFINE ACTUAL/SUM ""; BREAK AFTER PRODTYPE /SUMMARIZE; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'CourierNewPSMT';"&gt;&amp;nbsp; RUN; ODS HTML CLOSE; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Feb 2015 07:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176208#M45193</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-02-21T07:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176209#M45194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="page" title="Page 6"&gt;&lt;SPAN style="font-family: CourierNewPSMT; font-size: 9pt; line-height: 1.5em;"&gt;PROC REPORT DATA=sashelp.prdsale NOWD STYLE(REPORT)=[PREHTML="&amp;lt;hr&amp;gt;"] /*Inserts a rule between title &amp;amp; body*/; COLUMNS COUNTRY PRODTYPE,ACTUAL; DEFINE COUNTRY /GROUP; DEFINE PRODTYPE /ACROSS; DEFINE ACTUAL/SUM ""; BREAK AFTER PRODTYPE /SUMMary&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="page" title="Page 6"&gt;&lt;SPAN style="font-family: CourierNewPSMT; font-size: 9pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="page" title="Page 6"&gt;&lt;SPAN style="font-family: CourierNewPSMT; font-size: 9pt; line-height: 1.5em;"&gt;it didn't copy correctly here is rest of code... I need for results to be added to body of outlook like a pic &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="section"&gt;&lt;DIV class="column"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Feb 2015 07:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176209#M45194</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-02-21T07:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Embed a pivot table to body of outlook</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176210#M45195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since many mail systems do not allow HTML mail these days, I generally use the method shown in this paper:&lt;A href="http://support.sas.com/resources/papers/proceedings11/300-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/300-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/300-2011.pdf&lt;/A&gt; starting on page 7. I send my ODS files as attachments. That always works very reliably for me. That way I don't have to worry about whether the mail system allows HTML or RTF or PDF format mail or not. If you continue to have issues, you might want to open a track with Tech Support, there are many settings that can only be done at start up that have to be turned on before mail from SAS will work and depending on your OS and your mail client, you may not have the right things set for sending mail no matter which method you use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Feb 2015 15:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Embed-a-pivot-table-to-body-of-outlook/m-p/176210#M45195</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-02-21T15:02:57Z</dc:date>
    </item>
  </channel>
</rss>

