I wrote a template to create three line tables. It is quite close to what I needed. There are small issues: The title and footnote are separated from the main table by one or two blank lines. How can I change it to eliminate the blank lines between footnotes and the main table? The small for the title line. Thanks in advance.
proc template;
define style tfl_table;
style body /
leftmargin = 1in
rightmargin = 1in
topmargin = 0.5in
bottommargin = 0.5in;
style table /
frame = hsides
rules = groups
cellpadding = 3pt
cellspacing = 0pt
width = 100%;
style header /
/*This is the header line for the table.*/
fontfamily = 'Courier New'
fontsize = 9pt;
style data /
/*This is the data in the table.*/
fontfamily = 'Courier New'
fontsize = 9pt;
style SystemTitle /
fontfamily = 'Courier New'
color = red
fontsize = 10pt;
style systemfooter /
/*This affects the text in footnoteX statement.*/
textalign = left
fontfamily = 'Courier New'
fontsize = 9pt;
style NoteContent from Note /
/*change the font in the compute line*/
textalign = left
fontsize = 9pt
fontfamily = 'Courier New';
end;
run;
ods html close;
ods rtf file = "&dir.\test-run.rtf" bodytitle style = tfl_table;
ods escapechar = '^';
title1 'First Title with title1 statement';
title2 'Second Title with title2 statement';
footnote1 'footnote1 with footnote1 statement';
footnote2 'footnote2 with footnote2 statement';
proc report data = sashelp.class nowd;
column sex name age height weight;
define sex / group;
break after sex / page;
run;
ods rtf close;
title;
footnote;