BookmarkSubscribeRSS Feed
GreyJoy
Obsidian | Level 7

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?

 

 

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

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):

Cynthia_sas_0-1686335890525.png

 

  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

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


Register now!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 802 views
  • 1 like
  • 3 in conversation