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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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