ods listing close;
ods html path='?' body='?';
proc format;
value $colsex 'F'='lipk'
'M'='vpab';
value agealert low-29='lio'
other='vpag';
run;
proc tabulate data=clinic.admit format=4.1;
var age / style=<parent>;
class sex actlevel / style={background=vpag};
classlev sex / style={background=$colsex.};
classlev actlevel / style=<parent>;
table sex*actlevel*age*{style={
background=agealert.
font_weight=bold foreground=black}},
mean / box={style={background=vpag}};
keyword mean / style={background=vpag};
run;
ods html close;
ods listing;