BookmarkSubscribeRSS Feed
RobW
Calcite | Level 5
Hi,

I'm trying to 'hide' the display of selected cells in and ODS HTML output using Proc Report. Basically making the background and foreground attributes the same color using a call define. unfortunately, it appears SAS is defaulting the foreground to black. Is there a way to get around this?
.
.
.
call define(_col_,'style','style={background=VLIGR foreground=VLIGR}');

thanks
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I suspect the problem is the color name...you are using VLIGR -- I don't see that as a possible color name in the list of SAS names:
http://support.sas.com/kb/31/471.html

When I try background=YELLOW foreground=YELLOW, it works for me. If you are using the default HTML color scheme (the gray and blue color scheme), then you might want to try:
[pre]
call define(_col_,'style',
'style={background=cxD3D3D3 foreground=cxD3D3D3}');
[/pre]

Otherwise, the site above shows the named colors (SAS Names -- not necessarily the same as Microsoft names) above. When you look at the RESULTS of the note, you can hover your mouse over a color and see the HLS value (Hue, Lightness, Saturation) or the CX value (HTML/RGB color index value). I used a CX color value above. It stands for a hexadecimal percentage of colors:
[pre]
CXRRGGBB, where
CX000000 means 0% red, 0% green, 0% blue (black)
CXFFFFFF means 100% red, 100% green, 100% blue (white)
CXCCCCCC means 80% red, 80% green, 80% blue
etc, etc
[/pre]

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 636 views
  • 0 likes
  • 2 in conversation