Copy the following program and paste it into the Program Editor
window (or issue the commandcopy sashelp.oltutor..source).
ods listing close;
ods html path='?' body='?';
proc format;
value $colsex 'F'='lipk'
'M'='vpab';
run;
proc tabulate data=clinic.admit
format=4.1;
var age;
class sex actlevel /
style={background=vpag};
classlev sex /
style={background=$colsex.};
table sex*actlevel*age,mean /
box={style={background=vpag}};
keyword mean /
style={background=vpag};
run;
ods html close;
ods listing;
Replace the question marks (?)
with PATH= and BODY= values that conform to your system's file structure.
Remember that you can use the URL= suboption in PATH=, BODY=, or both.
Submit the program and view its output in your browser.
Recall the program and add a CLASSLEV statement with a STYLE= option to make
the ActLevel class level headings inherit styles from the levels
of Sex.
Submit the program and view its output in your browser.
Recall the program again and edit the VAR statement to make the
Age headings inherit styles from the ActLevel headings.
Submit the program and view its output in your browser.
Recall the program again and edit the TABLE statement to make the
Age data cells inherit styles from the Age headings.
Submit the program and view its output in your browser.