<?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 - Shrinking output (tables) to fit to one page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1323#M603</link>
    <description>Hi, Anais:&lt;BR /&gt;
  First, the LANDSCAPE option will work for any procedure, not just REPORT or TABULATE. So that's one thing to try. Next, the techniques described for PROC REPORT will also work for PROC TABULATE -- the syntax is slightly different. For example, in PROC REPORT, you would have:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes&lt;BR /&gt;
     style(report)={font_size=6pt cellpadding=3};[/pre]&lt;BR /&gt;
&lt;BR /&gt;
while in proc tab, the report style overrides would be on the TABLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table rowdim,&lt;BR /&gt;
      coldim &lt;BR /&gt;
     /style={font_size=6pt cellpadding=3};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The techniques described in the previous response will also work for PROC PRINT, as well as REPORT and TABULATE. Each procedure has a slightly different syntax, but works the same in concept. The SAS documentation has good examples of using style= overrides with these 3 procedures.&lt;BR /&gt;
&lt;BR /&gt;
As for OTHER procedures (like FREQ or CORR or MEANS or UNIVARIATE, etc, etc), there IS a way to change the style characteristics of the output from these procedures. It involves changing the style template that you use when you invoke ODS RTF...for example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf file='wombat.rtf' style=journal;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
produces a landscape report using the journal style in SAS 9 instead of the default RTF style. If you used PROC TEMPLATE to create a custom style template, then the style attributes that are changing in the PROC REPORT example would, instead, be specified in the style template, in this general fashion:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.smallRTF;&lt;BR /&gt;
  parent=styles.RTF;&lt;BR /&gt;
....more code....&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf file='koala.rtf' style=styles.smallRTF;&lt;BR /&gt;
PROC FREQ, PROC CORR, etc&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
In fact, IF you were going to go down the custom style template road, you would not even need to override style attributes inside PROC REPORT, TAB or PRINT anymore, unless you wanted to override them for a particular column or perform traffic lighting.&lt;BR /&gt;
&lt;BR /&gt;
However, the code that goes inside PROC TEMPLATE is verbose and is too long to post here. I recommend that you refer to these sites or contact Tech Support for help with a style template that will accomplish what you want.&lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
some helpful sites:&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/045/FAQ04503.html" target="_blank"&gt;http://support.sas.com/faq/045/FAQ04503.html&lt;/A&gt; (shrinking font in RTF)&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03993.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03993.html&lt;/A&gt; (changing header font)&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03992.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03992.html&lt;/A&gt; (changing cell values)</description>
    <pubDate>Fri, 25 Aug 2006 13:35:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2006-08-25T13:35:54Z</dc:date>
    <item>
      <title>ODS RTF - Shrinking output (tables) to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1322#M602</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I try to shrink my output tables in order to have one complete table per page. I am not using a Proc report, the tables come from Tabulate Freq Corr or TTest.&lt;BR /&gt;
&lt;BR /&gt;
I read the subject posted by MM "ODS PDF - Shrinking output to fit to one page &lt;BR /&gt;
Posted: Aug 9, 2006 4:36 PM "&lt;BR /&gt;
answered by Cynthia@sas.&lt;BR /&gt;
 &lt;BR /&gt;
Here is a part of her/your answer:&lt;BR /&gt;
"There is no "shrink to fit" with ODS because ODS leaves it to the viewer/rendering software to control printing issues."&lt;BR /&gt;
I would like to know if there is any chance to find a way to have tables fit under RTF?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much,&lt;BR /&gt;
&lt;BR /&gt;
Anais</description>
      <pubDate>Fri, 25 Aug 2006 08:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1322#M602</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-25T08:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF - Shrinking output (tables) to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1323#M603</link>
      <description>Hi, Anais:&lt;BR /&gt;
  First, the LANDSCAPE option will work for any procedure, not just REPORT or TABULATE. So that's one thing to try. Next, the techniques described for PROC REPORT will also work for PROC TABULATE -- the syntax is slightly different. For example, in PROC REPORT, you would have:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes&lt;BR /&gt;
     style(report)={font_size=6pt cellpadding=3};[/pre]&lt;BR /&gt;
&lt;BR /&gt;
while in proc tab, the report style overrides would be on the TABLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
table rowdim,&lt;BR /&gt;
      coldim &lt;BR /&gt;
     /style={font_size=6pt cellpadding=3};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The techniques described in the previous response will also work for PROC PRINT, as well as REPORT and TABULATE. Each procedure has a slightly different syntax, but works the same in concept. The SAS documentation has good examples of using style= overrides with these 3 procedures.&lt;BR /&gt;
&lt;BR /&gt;
As for OTHER procedures (like FREQ or CORR or MEANS or UNIVARIATE, etc, etc), there IS a way to change the style characteristics of the output from these procedures. It involves changing the style template that you use when you invoke ODS RTF...for example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf file='wombat.rtf' style=journal;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
produces a landscape report using the journal style in SAS 9 instead of the default RTF style. If you used PROC TEMPLATE to create a custom style template, then the style attributes that are changing in the PROC REPORT example would, instead, be specified in the style template, in this general fashion:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.smallRTF;&lt;BR /&gt;
  parent=styles.RTF;&lt;BR /&gt;
....more code....&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf file='koala.rtf' style=styles.smallRTF;&lt;BR /&gt;
PROC FREQ, PROC CORR, etc&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
In fact, IF you were going to go down the custom style template road, you would not even need to override style attributes inside PROC REPORT, TAB or PRINT anymore, unless you wanted to override them for a particular column or perform traffic lighting.&lt;BR /&gt;
&lt;BR /&gt;
However, the code that goes inside PROC TEMPLATE is verbose and is too long to post here. I recommend that you refer to these sites or contact Tech Support for help with a style template that will accomplish what you want.&lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
some helpful sites:&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/045/FAQ04503.html" target="_blank"&gt;http://support.sas.com/faq/045/FAQ04503.html&lt;/A&gt; (shrinking font in RTF)&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03993.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03993.html&lt;/A&gt; (changing header font)&lt;BR /&gt;
&lt;A href="http://support.sas.com/faq/039/FAQ03992.html" target="_blank"&gt;http://support.sas.com/faq/039/FAQ03992.html&lt;/A&gt; (changing cell values)</description>
      <pubDate>Fri, 25 Aug 2006 13:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1323#M603</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-08-25T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF - Shrinking output (tables) to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1324#M604</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Again, thank you for your complete answer/advice. &lt;BR /&gt;
It is very useful!&lt;BR /&gt;
&lt;BR /&gt;
Anais</description>
      <pubDate>Fri, 25 Aug 2006 14:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/1324#M604</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-25T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF - Shrinking output (tables) to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/252733#M15305</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This was so helpful. Thank you so much.&lt;/P&gt;
&lt;P&gt;I have a question-&lt;/P&gt;
&lt;P&gt;My proc corr- var&amp;nbsp;statement has lot of variables. This creates indvidual plots on the result. When I use the code-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options orientation=landscape;&lt;BR /&gt; ods rtf file='koala.rtf' style= journal;&lt;BR /&gt; PROC FREQ, PROC CORR, etc&lt;BR /&gt; ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It prints only tables in the output and no graphs. Could you help me with this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 16:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/252733#M15305</guid>
      <dc:creator>SASEnthusiast</dc:creator>
      <dc:date>2016-02-26T16:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF - Shrinking output (tables) to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/252881#M15307</link>
      <description>&lt;P&gt;Hi: It is probably not a good idea to piggyback a new question onto an older track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have ODS GRAPHICS turned on? Are you at least running SAS 9.2? Have you put the appropriate PLOTS= options in the PROC FREQ and PROC CORR steps? When I run the code below, I do see graphics in the output RTF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods graphics on;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;options orientation=landscape;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;ods rtf file='c:\temp\koala.rtf' style= journal;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc freq data=sashelp.class;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title '1) FREQ';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; tables age / nocum nopercent&amp;nbsp; plots=(all);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc corr data=sashelp.fish plots=matrix(histogram);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title '2) CORR';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods rtf close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 02:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Shrinking-output-tables-to-fit-to-one-page/m-p/252881#M15307</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-02-27T02:29:43Z</dc:date>
    </item>
  </channel>
</rss>

