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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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