Features: |
DEFINE HEADER statement : STYLE= column attribute statement LINK statement |
title; options nodate nostimer LS=78 PS=60;
proc template; define table base.template.table; cellstyle mod(_row_, 2) and _style_ ^= "RowHeader" as {background=blue color=white}, mod(_row_, 2) and _style_ = "RowHeader" as {background=green color=white}; end;
define column base.template.column; style={fontstyle=italic}; cellstyle _val_ > 5 as {fontsize=15pt}, _val_ = "Num" as {fontsize=20pt}; end;
define header base.template.header; style={fontsize=20pt color=purple}; end; link base.template.footer to base.template.header; run;
ods select variables; proc contents data=sashelp.class; run;
proc template; delete base.template.table; delete base.template.column; delete base.template.header; delete base.template.footer; run;
proc template; define table base.template.table; cellstyle mod(_row_, 2) and _style_ ^= "RowHeader" as {background=blue color=white}, mod(_row_, 2) and _style_ = "RowHeader" as {background=green color=white}; end;
define column base.template.column; style={fontstyle=italic}; cellstyle _val_ > 5 as {fontsize=15pt}, _val_ = "Num" as {fontsize=20pt}; end;
define header base.template.header; style={fontsize=20pt color=purple}; end; link base.template.footer to base.template.header; run;