SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing HTML Tabular Reports
Inheriting Style Attributes


Question: The VAR statement is missing from the PROC TABULATE step shown below. Specify Age as the analysis variable, and make the headings for Age inherit the styles of the class level variable ActLevel.
ods listing close;
ods html path='c:\data' body='table.html';
proc format;
   value $sexcolr 'F'='cx00DDDD'
                  'M'='cx00BBBB';
   value $actcolr 'HIGH'='cxFFBBFF'
                  'MOD'='cxDD99DD'
                  'LOW'='cxBB77BB';
run;
proc tabulate data=clinic.admit format=4.1;
   class sex actlevel / style={background=cx00FFFF};
   classlev sex / style={background=$sexcolr.};
   classlev actlevel / style={background=$actcolr.};
   
   table sex*actlevel*age,mean /
         box={style={background=cx00FFFF}};
   keyword mean / style={background=cx00FFFF};
run;
ods html close;
ods listing;

  Mean
Sex ActLevel   39.8
F HIGH Age
LOW Age 32.5
MOD Age 39.3
M HIGH Age 27.0
LOW Age 48.3
MOD Age 41.5



           

  back||next


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

Terms of Use & Legal Information | Privacy Statement