Simple question.
When I use the typical RGB color designation in proc report, everything works as expected.
proc format;
value report_clor
. ="Gray"
low -< 12 = "cx0aac2d"
12 -< 24 = "cx60c70d"
24 -< 36 = "cx98c20f"
36 -< 48 = "cxaeb80d"
48 -< 60 = "cxdac713"
60 -< 72 = "cxdf972b"
72 -< 84 = "cxdb5237"
84 -< 96 = "cxd13119"
96 - high = "cxb30505";
run;
proc report data=work.table_e_summ;
column zSiteID zvisitnm, Prop_25 ;
define zSiteID / group;
define zvisitnm / across;
define Prop_25 / group " " style=[background=] ;
format Prop_25 8.2;
run;
The moment I try to switch the RGB to an RGBa code the report is not using the color at all.
proc format;
value report_clor
. ="Gray"
low -< 24 = "a03a10366"
24 -< 36 = "a5de82766"
36 -< 48 = "a97e82766"
48 -< 60 = "ab7e82766"
60 -< 72 = "afffb0066"
72 -< 84 = "ae8992766"
84 -< 96 = "ae85f2766"
96 - high = "aff001d66";
run;
proc report data=work.table_e_summ;
column zSiteID zvisitnm, Prop_25 ;
define zSiteID / group;
define zvisitnm / across;
define Prop_25 / group " " style=[background=] ;
format Prop_25 8.2;
run;
Does proc Report not support the use of RGBA color codes?
Hi:
What's interesting is that this Tech Support note https://support.sas.com/kb/48/144.html and the SAS/Graph code do show that SAS/Graph supports the transparent colors (ugly though you can see the transparency):
I wonder if this a SAS/GRAPH or ODS Graphics only usage that doesn't work in PROC REPORT. That would be a question for Tech Support.
Cynthia
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.