[code:3bjtclg6]proc format;
value fmta
low-100='Green'
100<-150='Yellow'
150<-high='Red'
.='Blue';
run;
proc format;
value fmtb
low-50='Green'
50<-80='Yellow'
80<-high='Red'
.='Blue';
run;
ods html file='c:\class.html' charset='uft-8';
proc tabulate data=sashelp.class ;
class sex age;
var height;
table sex='', age=''*height=''*(sum=''*[style=[background=fmta.]] colpctn=''*[style=[background=fmtb.]]);
run;