| Features: |
DEFINE FOOTER statement: : TEXT statement |
| Other features: |
|
| Data set: | Grain_Production |
| Format: | $CNTRY. |
proc template; define style newstyle;
style cellcontents, header, systemtitle /
fontfamily="arial, helvetica"
fontweight=medium
backgroundcolor=blue
fontstyle=roman
fontsize=5
color=white;
class header /
backgroundcolor=very light blue;
class systemtitle /
backgroundcolor=white
color=red
fontstyle=italic
fontsize=6;
style footer from systemtitle /
fontsize=3;
class table /
borderspacing=5
borderwidth=10;
end;
run;
ods html body="newstyle-body.htm"
style=newstyle;
title "Leading Grain Producers"; title2 "in 1996";
data _null_;
set grain_production;
where type in ("Rice", "Corn") and year=1996;
file print ods=(
template="table1"
columns=(
char_var=country(generic=on format=$cntry.
dynamic=(colhd="Country"))
char_var=type(generic dynamic=(colhd="Year"))
num_var=kilotons(generic=on format=comma12.
dynamic=(colhd="Kilotons"))
)
);
put _ods_; run;
ods html close; ods html;
style cellcontents, header, systemtitle /
fontfamily="arial, helvetica"
fontweight=medium
backgroundcolor=blue
fontstyle=roman
fontsize=5
color=white; file print ods=(
template="table1" columns=(
char_var=country(generic=on format=$cntry.
dynamic=(colhd="Country"))
char_var=type(generic dynamic=(colhd="Year"))
num_var=kilotons(generic=on format=comma12.
dynamic=(colhd="Kilotons"))
)
);