SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing HTML Tabular Reports
Inheriting Style Attributes


Changing Headings for Analysis Variables

The headings for Revenue are particularly important, so let's color their cells to match the levels of Dest. Because Revenue is an analysis variable, you need to add the STYLE= option to the VAR statement:

     var boarded transferred deplaned revenue;
But if you do this, the STYLE= option will affect all four variables, not just the variable Revenue. How do you isolate Revenue? Write a second VAR statement, with Revenue as its only variable:

     var boarded transferred deplaned;
     var revenue;
Note: You can also use multiple CLASS and CLASSLEV statements to target specific variables for the STYLE= option.


Specifying Inheritance

Now you can add the STYLE= option, but remember that you want the Revenue cells to repeat the colors used for the Dest class levels. To specify that cells inherit the style attributes of a parent cell, use <parent> as the argument of the STYLE= option.

     var revenue / style=<parent>;
Because the Revenue cells are nested beneath the Dest levels, Dest is considered the parent of Revenue. Dest is also the parent of Boarded, Transferred, and Deplaned.


Parent Cell  -->   Copenhagen Boarded   <--  Child Cell
Transferred   <--  Child Cell
Deplaned   <--  Child Cell
Revenue   <--  Child Cell


Using the <parent> argument makes the Revenue cells repeat whatever color is used for their level of Dest.


London Boarded
Transferred
Deplaned
Revenue
  
London Boarded
Transferred
Deplaned
Revenue
  
London Boarded
Transferred
Deplaned
Revenue



  back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement