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
Diamond | Level 26
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

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1466 views
  • 0 likes
  • 2 in conversation