BookmarkSubscribeRSS Feed
Cynthia_sas
SAS Super FREQ
Hi:
About #2...the only way I know to get the empty cells above region or product formatted is to set the default for ALL the headers to the color you want those cells (black/white) and then override all the other headers in DEFINE statements to be the other colors you want.

cynthia
[pre]
ods listing close;
ods tagsets.ExcelXp file='header_ques.xls' style=sasweb
options(embedded_titles='yes' sheet_name='Business Unit HA' absolute_column_width='9');
title 'make ALL headers white and black and then override the ones you want different';
proc report data=sashelp.shoes nowd
style(headers)={foreground=black background=white font_weight=bold};
where product in ('Boot', 'Sandal', 'Slipper');
column region product, ( sales inventory returns);
define region / group;
define product / across style(header)={foreground=white background=green};
define returns/ sum ;
define inventory / sum style(header)={foreground=black background=cyan};
define sales / sum style(header)={foreground=black background=cyan};
run;
ods _all_ close;[/pre]

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 15 replies
  • 2648 views
  • 0 likes
  • 2 in conversation