@Cynthia_sas,
Sorry for tired you out, the following code meets my desired output.
I investigated your previous code more deeply and I resolved the my desired output. The output seems proper, what do ypu think, can I use this code for my aim?
Proc Report Data=Have Out=Want2 Nowd;
title " ";
Column Target Dataset ,(Color Value) ;
Define Target / Group Style(Column)=Header;
Define Color / Group Noprint ;
Define Dataset / Across ;
Define Value / Analysis ;
Compute Value;
Length SVar3 SVar5 SVar7 $100;
SVar3 = Catt('style={background=',_c2_,'}');
Call Define ('_c3_','style',SVar3);
SVar5 = catt('style={background=',_c4_,'}');
Call Define ('_c5_','style',SVar5);
SVar7 = catt('style={background=',_c6_,'}');
Call Define ('_c7_','style',SVar7);
EndComp;
Run;
title;
Thank you
... View more