![]() Chapter Contents |
![]() Previous |
![]() Next |
| The Complete Guide to the SAS Output Delivery System |
| Style Definitions, Style Elements, and Style Attributes |
Each style definition is composed of style elements. A style element is a collection of style attributes that apply to a particular part of the output. For instance, a style element may contain instructions for the presentation of column headers or for the presentation of the data inside cells. Style elements may also specify default colors and fonts for output that uses the style definition.
Each style attribute specifies a value for one aspect of the presentation. For instance, the BACKGROUND= attribute specifies the color for the background of an HTML table or for a colored table in Printer output. The FONT_STYLE= attribute specifies whether to use a Roman, a slant, or an italic font. For information on style attributes, see Style Attributes.
| Table Definitions, Table Elements, and Table Attributes |
Note:
The parts of table definitions that
control the presentation of the data have no affect on output objects that
go to the Listing or Output destination. However, the parts that control the
structure of the table and the data values do affect Listing output. ![[cautend]](../common/images/cautend.gif)
For information on table attributes, see Table Attributes.
| Customizing Presentation Aspects of ODS Output |
To specify a style definition for your ODS output, use the STYLE= option in the ODS statement for the destination or destinations that you are using (see Appending to HTML Files). Note that you must specify the option for each destination. Your site may have its own customized style definitions that are used for all HTML and Printer output to give the output a consistent appearance.
Some of the standard style definitions that are currently shipped with the SAS System include
| default | D3D |
| beige | minimal |
| brick | printer |
| brown | statdoc |
To find an up-to-date list of the style definitions:
| View | ![]() |
Results |
Operating Environment Information:
For information
on navigating in the Explorer window without a
mouse, see the section on "Window Controls and General Navigation"
in the SAS documentation for your operating environment.
You can also display a list of the available styles by submitting the following PROC TEMPLATE step:
proc template; list styles; run;
You can create your own style definitions or modify existing ones with PROC TEMPLATE (see The TEMPLATE Procedure).
| Customizing Output for a Tabular Output Object |
For a procedure, the name of the table definition that is used for an output object comes from the procedure code. The DATA step uses a default table definition unless you specify an alternative with the TEMPLATE= suboption in the ODS option in the FILE statement (see the discussion of TEMPLATE=).
ods trace on; your-proc-or-DATA-step ods trace off;
The trace record refers to the table definition as a template. For a detailed explanation of the trace record, see Contents of the Trace Record.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.