Hi, Bill:
The STYLE= option when used on the CLASS statement controls the headers for the CLASS variables. Your code is using a style= option on the CLASSLEV statement == this controls the VALUES for the CLASS variables.
So, depending on what you want, you can either use a STYLE= override to apply to ALL the CLASS variables (same as your CLASSLEV statement)
[pre]
class SLAB_GRD_FAM_NAME
SLAB_SOURCE_DIM_CD
PROD_GRP_DIM_CD
SLAB_LOC_DIM_CD / style=[background=yellow foreground=black];
[/pre]
or you can have multiple CLASS statements:
[pre]
class SLAB_GRD_FAM_NAME
SLAB_SOURCE_DIM_CD / [background=yellow foreground=black];
CLASS PROD_GRP_DIM_CD
/ style=[background=pink foreground=black];
CLASS SLAB_LOC_DIM_CD
/ style=[background=cyan foreground=black];
[/pre]
Proc TABULATE has very specific places that the STYLE= override affects -- so, for example, the style= override in your TABULATE statement affects the data cells (the style attribute is foreground...not fore_ground). What is specified in the TABLE statement affects the whole table. What is specified in the VAR statement affects the headers for the Analysis variables. What is specified in the CLASS statement affects the Class variable headers. If you look up the TABULATE documentation, there is an example of using STYLE= with Proc TABULATE.
cynthia