<?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 rtf contents in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400678#M19492</link>
    <description>Hi:&lt;BR /&gt;  Your report has by group processing turned on -- so you are getting contents for every BY group. Your highlighting implies that you want to see the contents only for the F bygroup, but not for the M bygroup? Is this correct?&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Tue, 03 Oct 2017 17:36:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-10-03T17:36:03Z</dc:date>
    <item>
      <title>ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400438#M19487</link>
      <description>&lt;P&gt;In the ods rtf output, I want to include contents inside.&lt;/P&gt;&lt;P&gt;below is my code and I got output like this:&lt;/P&gt;&lt;P&gt;Actually I only want to keep red marked part. I want to replace the blue marked text, using "Contents" instead of&amp;nbsp; "Table of contents"&lt;/P&gt;&lt;P&gt;In addition, I want to change the font size and style of contents.&lt;/P&gt;&lt;P&gt;How can I revise my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="try.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15554i5640AA9C0430233F/image-size/large?v=v2&amp;amp;px=999" role="button" title="try.JPG" alt="try.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods rtf file='XXXXX\try.rtf' contents=yes toc_data bodytitle;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;options nobyline;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=class; by sex; run;&lt;BR /&gt;proc report data=class nowindows contents='table1: aaaaaaaaa';&lt;BR /&gt;column name sex age height weight;&lt;BR /&gt;by sex;&lt;BR /&gt;footnote 'Measurements are in metric tons.';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc report data=class nowindows contents='table2: bbbbbb';&lt;BR /&gt;column name sex age height weight;&lt;BR /&gt;by sex;&lt;BR /&gt;footnote 'Measurements are in metric tons.';&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 20:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400438#M19487</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-10-02T20:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400678#M19492</link>
      <description>Hi:&lt;BR /&gt;  Your report has by group processing turned on -- so you are getting contents for every BY group. Your highlighting implies that you want to see the contents only for the F bygroup, but not for the M bygroup? Is this correct?&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 03 Oct 2017 17:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400678#M19492</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-10-03T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400934#M19502</link>
      <description>&lt;P&gt;When you open the figure attached. You can see 'Table 1' index , I do not want the "Table 1".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to keep The index of "Table 1: aaaaaaaaaaaa" and 'Table 2: bbbbbbbbbbbbbbbbbbbbbbb'.&lt;/P&gt;&lt;P&gt;If you have a method to control the display of "F bygroup" and suppress the 'M bygroup' it will be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/400934#M19502</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-10-04T12:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/401179#M19515</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That extra "Table 1" node is something that PROC REPORT introduces. To get rid of that, you have to use a technique from this Tech Support note:&amp;nbsp;&lt;A href="http://support.sas.com/kb/31/278.html.&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/31/278.html.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; To do without the BY groups, you'd have to actually NOT use the BY statement. You could move to using PAGE instead of BY with PROC REPORT. But that means one of your variables (most likely SEX) for this scenario has to be a GROUP or ORDER variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Also, ODS PROCLABEL will get rid of the "top" node in the table of contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's something I mocked up -- program and output shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc_report_revise_toc.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15624i55B0D4A873DD4B3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_report_revise_toc.png" alt="proc_report_revise_toc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 01:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/401179#M19515</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-10-05T01:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/402353#M19542</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not open the link '&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/kb/31/278.html.%C2%A0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/31/278.html.&amp;nbsp;&lt;/A&gt;'&amp;nbsp; Can you please send me the file?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/402353#M19542</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-10-09T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407453#M19683</link>
      <description>&lt;P&gt;If I include a figure inside like below. How can I remove the marked part "The SGPlot Procedure"&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods rtf file='XXXX\try.rtf' contents=yes toc_data bodytitle;&lt;/P&gt;&lt;P&gt;options nobyline;&lt;/P&gt;&lt;P&gt;data class; set sashelp.class; dummy_c=1; run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS PROCLABEL="Table: class_table";&lt;BR /&gt;proc report data=class nowindows contents='';&lt;BR /&gt;column dummy_c name sex age height weight;&lt;BR /&gt;define dummy_c /group noprint;&lt;BR /&gt;break before dummy_c /page contents=' ';&lt;BR /&gt;footnote 'Measurements are in metric tons.';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;ODS PROCLABEL="Figure: class_figure";&lt;/P&gt;&lt;P&gt;proc sgplot data=class;&lt;BR /&gt;scatter x=height y=weight / group=sex;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.GIF" style="width: 524px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16223i222D75D888B2CBFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.GIF" alt="Capture.GIF" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 20:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407453#M19683</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-10-25T20:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407512#M19686</link>
      <description>&lt;P&gt;Use the DESCRIPTION= option on the PROC SGPLOT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file='XXXX\try.rtf' contents=yes toc_data bodytitle;

options nobyline;

data class; 
  set sashelp.class; 
  dummy_c=1; 
run;


ODS PROCLABEL="Table: class_table";

proc report data=class nowindows contents='';
  column dummy_c name sex age height weight;
  define dummy_c /group noprint;
  break before dummy_c /page contents=' ';
  footnote 'Measurements are in metric tons.';
run;

ods graphics on;

ODS PROCLABEL="Figure: class_figure";

proc sgplot data=class description='';
  scatter x=height y=weight / group=sex;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Oct 2017 00:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407512#M19686</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-10-26T00:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS rtf contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407785#M19695</link>
      <description>&lt;P&gt;Great Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 18:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-rtf-contents/m-p/407785#M19695</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2017-10-26T18:56:08Z</dc:date>
    </item>
  </channel>
</rss>

