data colors; set sashelp.shoes; where Subsidiary in('Addis Ababa' 'Algiers' 'Cairo' 'Khartoum'); run; ods html; proc report data=colors nowd; column subsidiary sales; define subsidiary / display; define sales / display; compute subsidiary; if subsidiary='Addis Ababa' then call define(_row_,"style","style={background=green}"); else if subsidiary='Algiers' then call define(_row_,"style","style={background=blue}"); else if subsidiary='Cairo' then call define(_row_,"style","style={background=red}"); else if subsidiary='Khartoum' then call define(_row_,"style","style={background=orange}"); endcomp; where sales gt 70000; run; ods html close;
... View more