ods listing close;
ods html path='c:\data' body='table.html';
proc format;
value $sexcolr 'F'='cx00DDDD'
'M'='cx00BBBB';
value $actcolr 'HIGH'='cxFFBBFF'
'MOD'='cxDD99DD'
'LOW'='cxBB77BB';
run;
proc tabulate data=clinic.admit format=4.1
class sex actlevel / style={background=cx00FFFF};
classlev sex / style={background=$sexcolr.};
classlev actlevel / style={background=$actcolr.};
var age / style=<parent>;
table sex*actlevel*age,mean /
box={style={background=cx00FFFF}};
keyword mean / style={background=cx00FFFF};
run;
ods html close;
ods listing;
|