@Quentin wrote:
@gdb02 wrote: Great idea, but I was going for code readability over color consistency for the project I was working on.
And if I really want to confuse myself, I can remap &green to resolve to a different color without changing my reporting code. : )
Which seems to be what SAS has done, I assume by accident, replacing the color code for GREEN BLUE with the color code for RED.
Someone should raise this as a bug report to SAS technical support team.
data test;
input colorname $20.;
cards;
RED
BLUE
GREEN
YELLOW
BLUE GREEN
GREEN BLUE
;
proc report data=test;
title1 'What is going on with BLUE GREEN named color combinations?';
column colorname colorname=clr;
define colorname/ 'Color Name';
define clr / 'Color';
compute clr /char length=200;
call define(_col_,'style','style={background='||colorname||'}');
endcomp;
run;
... View more