I made the changes that Cynthia described and it seems to work OK. proc report data=work.data out=work.test; columns group value,(value2 value3); define group / group; define value / across; define value2 / display; define value3 / analysis; compute value3; if _C3_ = 2 then do; call define("_C2_","style","Style=[Background=#C7E9FF]"); end; if _C5_ = 2 then do; call define("_C4_","style","Style=[Background=#C7E9FF]"); end; if _C7_ = 2 then do; call define("_C6_","style","Style=[Background=#C7E9FF]"); end; if _C9_ = 2 then do; call define("_C8_","style","Style=[Background=#C7E9FF]"); end; endcomp; run;
... View more