Enhancing HTML Tabular Reports |
Lesson
Summary![]() ![]() |
This page contains
|
I. Text Summary
To go to the page where a task, programming feature, or concept was presented, select a link.
Changing Class Headings
Changing Keyword Headings
Changing the Box Cell
Changing Class Level Headings
Using Formats as Option Values
Inheriting Style Attributes
Changing Styles for Data Cells
Applying Styles to Specific Cell Values
Altering the Appearance of Text |
Attribute | Sample Values |
---|---|
foreground | white, cx336699 |
font_face | times, helv, courier, serif |
font_size | 1-7, 10pt, 0.2in |
font_style | roman, italic, slant |
font_weight | light, medium, bold, black |
font_width | compressed, narrow, normal, wide |
Adding Cell Traffic-Lighting You can draw attention to data by making cells change in accordance with their values. To create cell traffic-lighting, start by creating a format to set background colors. Then apply the STYLE= option to the variable, setting the background attribute equal to your user-defined format.
Adding Flyover Text
Passing HTML Tags
Embedding Images
|
II. Syntax
To go to the page where a statement or option was presented, select a link.
|
III. Sample Program
The lesson's sample program is shown below. If you want to create this table, be sure to copy denmark.gif, germany.gif, uk.gif, and france.gif to the location where laguard.html is stored. |
ods listing close; ods html path='c:\data' body='laguard.html'; title1 'Laguardia Flights by Destination'; title2 'and Revenue, March 4-10'; proc format; value $desname 'CPH'='<DIV>Copenhagen<P><IMG src="denmark.gif"></DIV>' 'FRA'='<DIV>Frankfurt<P><IMG src="germany.gif"></DIV>' 'LON'='<DIV>London<P><IMG src="uk.gif"></DIV>' 'PAR'='<DIV>Paris<P><IMG src="france.gif"></DIV>'; value $desback 'CPH'='cxBBDDCC' 'FRA'='cxAACCBB' 'LON'='cx99BBAA' 'PAR'='cx88AA99'; value deplback low-105='lipk' 245-250='vpapb' other='ywh'; value deplflyo low-105='LOW traffic. Cut flights?' 245-250='HIGH traffic. Add flights?' other=' '; run; proc tabulate data=flights.laguardia format=comma9. style={background=ywh}; class dest / style={background=cxCCEEDD font_style=italic}; classlev dest / style={background=$desback.}; var boarded transferred deplaned / style={background=cxCCEEDD}; var revenue / style=<parent>{foreground=black}; table dest*(boarded transferred deplaned*{style={background=deplback. flyover=deplflyo.}} revenue*{style=<parent>}),min max mean sum / box={style={background=cxCCEEDD}}; keyword min max mean sum / style={background=cxCCEEDD font_style=italic}; label dest='Destination'; format dest $desname.; run; ods html close; ods listing;
|
IV. Points to Remember
|
![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.