proc template;
define style Styles.Threelines;
parent = Styles.Default;
STYLE SystemTitle /
FONT_FACE = " Times New Roman, Comic Sans MS, Helvetica, sans-serif"
FONT_SIZE = 5
FONT_WEIGHT = bold
FONT_STYLE = roman
FOREGROUND = midnightblue
BACKGROUND = white;
STYLE SystemFooter /
FONT_FACE = " Times New Roman, Comic Sans MS, Helvetica, sans-serif"
FONT_SIZE = 2
FONT_WEIGHT = bold
FONT_STYLE = italic
FOREGROUND = midnightblue
BACKGROUND = white;
STYLE Header /
FONT_FACE = "Times New Roman, Helvetica, sans-serif"
FONT_SIZE = 4
FONT_WEIGHT = medium
FONT_STYLE = roman
FOREGROUND = midnightblue
BACKGROUND = white;
STYLE RowHeader from header /
BACKGROUND = white;
STYLE Data /
FONT_FACE = "Times New Roman, Helvetica, sans-serif"
FONT_SIZE = 2
FONT_WEIGHT = medium
FONT_STYLE = roman
FOREGROUND = black
BACKGROUND = white;
STYLE Table /
FOREGROUND = black
BACKGROUND = white
CELLSPACING = 0
CELLPADDING = 3
FRAME = HSIDES
RULES = groups;
STYLE Body /
FONT_FACE = "Times New Roman, Arial, Helvetica, sans-serif"
FONT_SIZE = 3
FONT_WEIGHT = medium
FONT_STYLE = roman
FOREGROUND = black
BACKGROUND = white;
STYLE SysTitleAndFooterContainer /
CELLSPACING=0;
end;
run;
ods rtf style=Threelines;
title 'three';
footnote 'dfdfdf';
proc tabulate data= sashelp.class ;
class sex;
var age height weight;
table sex, (age height weight) *mean;
run;
ods rtf close;
本文来自: 人大经济论坛 SAS专版 版,详细出处参考:
https://bbs.pinggu.org/forum.php?mod=viewthread&tid=1075649&page=1&from^^uid=3369630