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

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 520 views
  • 1 like
  • 3 in conversation