ods listing close;
ods html path='?' body='?';
proc format;
value $colsex 'F'='lipk'
'M'='vpab';
value agealert low-29='lio'
other='vpag';
value ageflyov low-29='Could be trouble'
other=' ';
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. flyover=ageflyov.
font_weight=bold foreground=black}},
mean / box={style={background=vpag}};
keyword mean / style={background=vpag};
run;
ods html close;
ods listing;