<?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: How can I reduce the space between table and footnote in ODS RTF? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278288#M16141</link>
    <description>&lt;P&gt;Thank you, I've not posted on this forum before so I wasn't sure where to put it.&amp;nbsp; I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some code using the sashelp.class dataset that produces the "too far away" footnote version, using your style template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
 define style styles.newrtf;
 parent=styles.rtf;
 style header / background = white font=(Times, 11pt, Bold);
 replace fonts /
   'TitleFont2' = ("Times",12pt,Bold Italic)
   'TitleFont' = ("Times",12pt,Bold)
   'StrongFont' = ("Times",11pt,Bold)
   'EmphasisFont' = ("Times",11pt,Italic)
   'FixedEmphasisFont' = ("Courier New, Courier",10pt,Italic)
   'FixedStrongFont' = ("Courier New, Courier",10pt,Bold)
   'FixedHeadingFont' = ("Courier New, Courier",10pt,Bold)
   'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",8pt)
   'FixedFont' = ("Courier New, Courier",10pt)
   'headingEmphasisFont' = ("Times",12pt,Bold Italic)
   'headingFont' = ("Times",11pt,Bold)
   'docFont' = ("Times",9pt);
replace Table from Output /
rules = all
cellspacing = 0.5pt
cellpadding = 2.0pt;
end;
run;

data work.class; set sashelp.class;
  overall=1;
run;

ods listing close;
ods rtf file="C:\Users\jdankovchik\Desktop\sample_rtf.rtf" style=styles.newrtf bodytitle keepn startpage=no;


proc tabulate data=work.class missing; keylabel all="TOTAL";  
  class sex /  S=[background=lightblue font_weight=bold just=left];
  classlev sex overall/style=[cellwidth=4 in asis=on];
  VAR OVERALL;
  tables sex all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 1" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 1";
run;

proc tabulate data=work.class missing; keylabel all="TOTAL";
  class age / S=[background=lightblue font_weight=bold just=left];
  classlev age overall/style=[cellwidth=4 in asis=on];
  VAR OVERALL;
  tables age all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 2" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 2";
run;


ods rtf close;
ods listing;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the only way I figured out to adjust the distance between table and footnote, again using your style template but adding parskip and then using ODS TAGSETS.RTF.&amp;nbsp; But as you see with this one, altough the footnote is now in a sensible place, only the last table gets its footnote.&amp;nbsp; The rest are just missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
 define style styles.newrtf2;
 parent=styles.rtf;
 style header / background = white font=(Times, 11pt, Bold);
 style parskip / fontsize = 6pt;
 replace fonts /
   'TitleFont2' = ("Times",12pt,Bold Italic)
   'TitleFont' = ("Times",12pt,Bold)
   'StrongFont' = ("Times",11pt,Bold)
   'EmphasisFont' = ("Times",11pt,Italic)
   'FixedEmphasisFont' = ("Courier New, Courier",10pt,Italic)
   'FixedStrongFont' = ("Courier New, Courier",10pt,Bold)
   'FixedHeadingFont' = ("Courier New, Courier",10pt,Bold)
   'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",8pt)
   'FixedFont' = ("Courier New, Courier",10pt)
   'headingEmphasisFont' = ("Times",12pt,Bold Italic)
   'headingFont' = ("Times",11pt,Bold)
   'docFont' = ("Times",9pt);
replace Table from Output /
rules = all 
cellspacing = 0.5pt
cellpadding = 2.0pt;
end;
run;

data work.class; set sashelp.class;
  overall=1;
run;


ods listing close;
ods tagsets.rtf file="C:\Users\jdankovchik\Desktop\sample_rtf.rtf" style=styles.newrtf2 startpage=no;


proc tabulate data=work.class missing; keylabel all="TOTAL";  
  class sex / S=[background=lightblue font_weight=bold just=left]; 
  classlev sex overall/style=[cellwidth=4 in asis=on]; 
  VAR OVERALL;
  tables sex all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 1" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 1";
run; 

proc tabulate data=work.class missing; keylabel all="TOTAL"; 
  class age /  S=[background=lightblue font_weight=bold just=left]; 
  classlev age overall/style=[cellwidth=4 in asis=on]; 
  VAR OVERALL;
  tables age all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 2" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 2";
run; 


ods rtf close;
ods listing;&lt;/PRE&gt;&lt;P&gt;I appreciate any insight you may have!&amp;nbsp; Thanks very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jenine&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 19:00:04 GMT</pubDate>
    <dc:creator>jdankovchik</dc:creator>
    <dc:date>2016-06-17T19:00:04Z</dc:date>
    <item>
      <title>How can I reduce the space between table and footnote in ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278058#M16136</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to output a large number of tables using PROC TABULATE to a MS Word document (SAS 9.4).&amp;nbsp; Each table has its own footnote. I have used ODS RTF with bodytitle option but the footnotes are defaulting to print a couple of lines below the table, which is taking up way too much space and makes it hard to read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using parskip and the TAGSETS version of ODS RTF, but when I do that it only prints the last footnote - all the rest are just missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jenine&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 00:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278058#M16136</guid>
      <dc:creator>jdankovchik</dc:creator>
      <dc:date>2016-06-17T00:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the space between table and footnote in ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278086#M16137</link>
      <description>&lt;P&gt;What style are you using for your ODS RTF output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create and modify your own style that may be able to help with that, I'm not sure what the setting would be for that particular option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my standard RTF style:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/9603140" target="_blank"&gt;https://gist.github.com/statgeek/9603140&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see the source code for a particular style using the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
source style_name;
run;quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as always the ever helpful, albiet too full of information link to the documentation. Example 7 talks about footers/headers but not sure it's the same as footnote.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/odsproc/67922/HTML/default/viewer.htm#p1t0ip5z3ouo89n1qbsztf3khjqr.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsproc/67922/HTML/default/viewer.htm#p1t0ip5z3ouo89n1qbsztf3khjqr.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 02:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278086#M16137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-17T02:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the space between table and footnote in ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278244#M16138</link>
      <description>&lt;P&gt;Thank you for the style template Reeza.&amp;nbsp; Using your template my tables look great but the default for footnotes is still to appear a few lines below the table.&amp;nbsp; This leaves big gaps on each page and makes it really hard to read.&amp;nbsp; I want to change it so the footnote appears directly below each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any options within the style to adjust this distance.&amp;nbsp; The only thing I could find was parskip using TAGSETS, but then I lose all but the last footnote.&amp;nbsp; For some reason TAGSETS doesn't seem to allow a different footnote beneath each table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jenine&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 16:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278244#M16138</guid>
      <dc:creator>jdankovchik</dc:creator>
      <dc:date>2016-06-17T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the space between table and footnote in ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278263#M16139</link>
      <description>&lt;P&gt;You should be able to specify&amp;nbsp;unique footnotes per table.&lt;/P&gt;
&lt;P&gt;Can you post some code that replicates your issue, preferably using SASHELP data sets so we can run it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what version of SAS do you have?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also moved the post to the Reporting forum so hopefully someone else with more experience can help answer your question.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278263#M16139</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-17T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I reduce the space between table and footnote in ODS RTF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278288#M16141</link>
      <description>&lt;P&gt;Thank you, I've not posted on this forum before so I wasn't sure where to put it.&amp;nbsp; I'm using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some code using the sashelp.class dataset that produces the "too far away" footnote version, using your style template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
 define style styles.newrtf;
 parent=styles.rtf;
 style header / background = white font=(Times, 11pt, Bold);
 replace fonts /
   'TitleFont2' = ("Times",12pt,Bold Italic)
   'TitleFont' = ("Times",12pt,Bold)
   'StrongFont' = ("Times",11pt,Bold)
   'EmphasisFont' = ("Times",11pt,Italic)
   'FixedEmphasisFont' = ("Courier New, Courier",10pt,Italic)
   'FixedStrongFont' = ("Courier New, Courier",10pt,Bold)
   'FixedHeadingFont' = ("Courier New, Courier",10pt,Bold)
   'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",8pt)
   'FixedFont' = ("Courier New, Courier",10pt)
   'headingEmphasisFont' = ("Times",12pt,Bold Italic)
   'headingFont' = ("Times",11pt,Bold)
   'docFont' = ("Times",9pt);
replace Table from Output /
rules = all
cellspacing = 0.5pt
cellpadding = 2.0pt;
end;
run;

data work.class; set sashelp.class;
  overall=1;
run;

ods listing close;
ods rtf file="C:\Users\jdankovchik\Desktop\sample_rtf.rtf" style=styles.newrtf bodytitle keepn startpage=no;


proc tabulate data=work.class missing; keylabel all="TOTAL";  
  class sex /  S=[background=lightblue font_weight=bold just=left];
  classlev sex overall/style=[cellwidth=4 in asis=on];
  VAR OVERALL;
  tables sex all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 1" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 1";
run;

proc tabulate data=work.class missing; keylabel all="TOTAL";
  class age / S=[background=lightblue font_weight=bold just=left];
  classlev age overall/style=[cellwidth=4 in asis=on];
  VAR OVERALL;
  tables age all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 2" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 2";
run;


ods rtf close;
ods listing;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the only way I figured out to adjust the distance between table and footnote, again using your style template but adding parskip and then using ODS TAGSETS.RTF.&amp;nbsp; But as you see with this one, altough the footnote is now in a sensible place, only the last table gets its footnote.&amp;nbsp; The rest are just missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
 define style styles.newrtf2;
 parent=styles.rtf;
 style header / background = white font=(Times, 11pt, Bold);
 style parskip / fontsize = 6pt;
 replace fonts /
   'TitleFont2' = ("Times",12pt,Bold Italic)
   'TitleFont' = ("Times",12pt,Bold)
   'StrongFont' = ("Times",11pt,Bold)
   'EmphasisFont' = ("Times",11pt,Italic)
   'FixedEmphasisFont' = ("Courier New, Courier",10pt,Italic)
   'FixedStrongFont' = ("Courier New, Courier",10pt,Bold)
   'FixedHeadingFont' = ("Courier New, Courier",10pt,Bold)
   'BatchFixedFont' = ("SAS Monospace, Courier New, Courier",8pt)
   'FixedFont' = ("Courier New, Courier",10pt)
   'headingEmphasisFont' = ("Times",12pt,Bold Italic)
   'headingFont' = ("Times",11pt,Bold)
   'docFont' = ("Times",9pt);
replace Table from Output /
rules = all 
cellspacing = 0.5pt
cellpadding = 2.0pt;
end;
run;

data work.class; set sashelp.class;
  overall=1;
run;


ods listing close;
ods tagsets.rtf file="C:\Users\jdankovchik\Desktop\sample_rtf.rtf" style=styles.newrtf2 startpage=no;


proc tabulate data=work.class missing; keylabel all="TOTAL";  
  class sex / S=[background=lightblue font_weight=bold just=left]; 
  classlev sex overall/style=[cellwidth=4 in asis=on]; 
  VAR OVERALL;
  tables sex all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 1" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 1";
run; 

proc tabulate data=work.class missing; keylabel all="TOTAL"; 
  class age /  S=[background=lightblue font_weight=bold just=left]; 
  classlev age overall/style=[cellwidth=4 in asis=on]; 
  VAR OVERALL;
  tables age all, overall=''*(n*f=4.0 colpctn='(%)'*f=pctfmt.)/misstext='0' rts=15 box=[label="Testing Table 2" style=[font_size=12pt]];   
  keyword all / style={font_style=italic};
  footnote "Testing Footnote 2";
run; 


ods rtf close;
ods listing;&lt;/PRE&gt;&lt;P&gt;I appreciate any insight you may have!&amp;nbsp; Thanks very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Jenine&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 19:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-I-reduce-the-space-between-table-and-footnote-in-ODS-RTF/m-p/278288#M16141</guid>
      <dc:creator>jdankovchik</dc:creator>
      <dc:date>2016-06-17T19:00:04Z</dc:date>
    </item>
  </channel>
</rss>

