Contents
About
Title Page
What's New in the Output Delivery System
Accessibility for the Output Delivery System
About This Book
Introduction
New Output Defaults in SAS 9.3
Working with Output Defaults in SAS 9.3
Where to Go from Here
Getting Started with the Output Delivery System
Welcome to the Output Delivery System
A Quick Start to Using ODS
Where to Go from Here
Concepts
Output Delivery System: Basic Concepts
Introduction to the Output Delivery System
Gallery of ODS Samples
Overview of How ODS Works
Understanding ODS Destinations
Understanding Table Templates, Table Elements, and Table Attributes
Understanding Styles, Style Elements, and Style Attributes
Understanding Item Stores, Template Stores, and Directories
Changing SAS Registry Settings for ODS
Customized ODS Output
Summary of ODS
Output Delivery System and the DATA Step
Using ODS with the DATA Step
Using ODS with the DATA Step
How ODS Works with the DATA Step
Syntax for ODS Enhanced Features in a DATA Step
PUT Statement for ODS
FILE Statement for ODS
Examples
Example 1: Creating a Report with the DATA Step and the Default Table Definition
Example 2: Producing ODS Output That Contains Selected Variables
Example 3: Assigning Attributes to Columns in ODS Output
Example 4: Creating and Using a User-Defined Table Definition Template
ODS Statements
Introduction to ODS Language Statements
Definition of ODS Statements
Types of ODS Statements
Dictionary of ODS Language Statements
ODS Statement Category Descriptions
ODS Statements by Category
FILE Statement for ODS
LIBNAME Statement, SASEDOC
ODS _ALL_ CLOSE Statement
ODS CHTML Statement
ODS CSVALL Statement
ODS DECIMAL_ALIGN Statement
ODS DOCBOOK Statement
ODS DOCUMENT Statement
ODS ESCAPECHAR Statement
ODS EXCLUDE Statement
ODS GRAPHICS Statement
ODS HTML3 Statement
ODS HTML Statement
ODS HTMLCSS Statement
ODS IMODE Statement
ODS LISTING Statement
ODS MARKUP Statement
ODS NO_DECIMAL_ALIGN Statement
ODS OUTPUT Statement
ODS PACKAGE Statement
ODS PATH Statement
ODS PCL Statement
ODS PDF Statement
ODS PREFERENCES Statement
ODS PHTML Statement
ODS PRINTER Statement
ODS PROCLABEL Statement
ODS PROCTITLE Statement
ODS PS Statement
ODS RESULTS Statement
ODS RTF Statement
ODS SELECT Statement
ODS SHOW Statement
ODS Tagset Statement
ODS TAGSETS.RTF Statement
ODS TEXT= Statement
ODS TRACE Statement
ODS USEGOPT Statement
ODS VERIFY Statement
ODS WML Statement
PUT Statement for ODS
System Options for ODS
System Options for ODS
ODSDEST= System Option
ODSGRAPHICS= System Option
ODSSTYLE= System Option
The DOCUMENT Procedure
The DOCUMENT Procedure
Syntax: DOCUMENT Procedure
PROC DOCUMENT
COPY TO
DELETE
DIR
DOC
DOC CLOSE
HIDE
IMPORT TO
LINK
LIST
MAKE
MOVE TO
NOTE
OBANOTE
OBBNOTE
OBFOOTN
OBPAGE
OBSTITLE
OBTEMPL
OBTITLE
RENAME TO
REPLAY
SETLABEL
UNHIDE
Overview: DOCUMENT Procedure
Concepts: DOCUMENT Procedure
Rearranging and Replaying Output
Customizing Labels, Titles, and Footnotes with BY Variables
Results: DOCUMENT Procedure
Examples: DOCUMENT Procedure
Example 1: Rearranging Output with the Documents Window
Example 2: Replaying a Document Using the Document Window
Example 3: Navigating the Directory and Listing the Entries
Example 4: Opening and Listing ODS Documents
Example 5: Managing Entries
Example 6: Listing BY-Group Entries
Example 7: Importing LISTING Output and a SAS Program
The TEMPLATE Procedure
TEMPLATE Procedure: Overview
Syntax: TEMPLATE Procedure
Introduction to the TEMPLATE Procedure
Using the TEMPLATE Procedure
PROC TEMPLATE Statements by Category
Where to Go from Here
TEMPLATE Procedure: Managing Template Stores
Syntax: Template Procedure
PROC TEMPLATE
DELETE
LINK
LIST
PATH
SOURCE
TEST
Overview: Template Stores
Concepts: Template Stores and the TEMPLATE Procedure
Examples: Template Procedure
Example 1: Listing Templates in a Template Store
Example 2: Using a WHERE Expression to Select Items in a Template Store
Example 3: Viewing the Source of a Template
TEMPLATE Procedure: Creating Crosstabulation Table Templates
Syntax: Template Procedure
PROC TEMPLATE
CELLSTYLE AS
CELLVALUE
DEFINE CELLVALUE
DEFINE CROSSTABS
DEFINE FOOTER
DEFINE HEADER
DYNAMIC
END
FOOTER
HEADER
NOTES
TEXT
Overview: ODS Crosstabulation Table Templates
Concepts: Crosstabulation Output and the TEMPLATE Procedure
Using Crosstabulation Table Templates
Examples: Template Procedure
Example 1: Creating a Customized Crosstabulation Table Template with No Legend
Example 2: Creating a Crosstabulation Table Template with a Customized Legend
Example 3: Adding Custom Formats to Cellvalues
TEMPLATE Procedure: Creating ODS Graphics
Syntax: Template Procedure
Introduction to the Graph Template Language
Where to Go from Here
TEMPLATE Procedure: Creating a Style Template
Syntax: TEMPLATE Procedure
PROC TEMPLATE
DEFINE STYLE
CLASS
EDIT
END
IMPORT
NOTES
PARENT=
REPLACE
STYLE
Overview: ODS Style Templates
Concepts: Styles and the TEMPLATE Procedure
Style Attributes Overview
Style Attributes Tables
Detailed Information for All Style Attributes
Style Attribute Values
Examples: TEMPLATE Procedure
Example 1: Creating a Stand-Alone Style
Example 2: Using User-Defined Attributes
Example 3: Using the CLASS Statement
Example 4: Defining a Table and Graph Style
Example 5: Defining Multiple Style Elements in One STYLE Statement
Example 6: Importing a CSS File
Example 7: Table Header and Footer Border Formatting
TEMPLATE Procedure: Creating Table Templates
Syntax: TEMPLATE Procedure
CELLSTYLE AS
COLUMN
COMPUTE AS
DEFINE
DEFINE COLUMN
DEFINE FOOTER
DEFINE HEADER
DEFINE TABLE
DYNAMIC
EDIT
END
FOOTER
HEADER
MVAR
NMVAR
NOTES
TEXT
TEXT2
TEXT3
TRANSLATE INTO
Overview: ODS Table Templates
Concepts: Tabular Output and the TEMPLATE Procedure
Using the TEMPLATE Procedure to Create Tabular Output
Examples: TEMPLATE Procedure
Example 1: Editing a Table Template That a SAS Procedure Uses
Example 2: Comparing the EDIT Statement to the DEFINE TABLE Statement
Example 3: Creating a New Table Template
Example 4: Setting the Style Element for Cells Based on Their Values
Example 5: Setting the Style Element for a Specific Column, Row, and Cell
Example 6: Creating Master Templates
Example 7: Table Header and Footer Border Formatting
TEMPLATE Procedure: Creating Markup Language Tagsets
Syntax: TEMPLATE Procedure
DEFINE TAGSET
DEFINE EVENT
BLOCK
BREAK
CLOSE
CONTINUE
DELSTREAM
DO
DONE
ELSE
END
EVAL
FLUSH
ITERATE
NDENT
NEXT
NOTES
OPEN
PUT
PUTL
PUTLOG
PUTQ
PUTSTREAM
PUTVARS
SET
STOP
TRIGGER
UNBLOCK
UNSET
XDENT
Overview: ODS Tagsets and the TEMPLATE PROCEDURE
Concepts: Markup Languages and the TEMPLATE Procedure
Event Variables
Event Statement Conditions
Examples: TEMPLATE Procedure
Example 1: Creating a Tagset through Inheritance
Example 2: Creating a Tagset by Copying a Tagset's Source
Example 3: Creating a New Tagset
Example 4: Executing Events Using the TRIGGER= Statement
Example 5: Indenting Output
Example 6: Using Different Styles for Events
Example 7: Modifying an Event to Include Other Style Sheets
Example 8: Using the STACKED_COLUMNS Attribute in a Tagset
Appendices
Output Object Table Names
ODS Table Names and the SAS Procedures That Produce Them
ODS Table Names and the Base SAS Procedures That Produce Them
ODS Table Names and the SAS/STAT Procedures That Produce Them
ODS Table Names and the SAS/ETS Procedures That Produce Them
Example Programs
Examples From The Gallery of ODS Samples
Creating the $CNTRY Format
Creating the Charity Data Set
Creating the DIVFMT. and USETYPE. Formats
Creating the DistrData Data Set
Creating the Univ ODS Document
Creating the Employee_Data Data Set
Creating the Energy Data Set
Creating the Exprev Data Set
Creating the Gov Data Set
Creating the Grain_Production Data Set
Creating the Iron Data Set
Creating the Model Data Set
Creating the Neuralgia Data Set
Creating the Plants Data Set
Creating the Plant_Stat Data Set
Creating the StatePop Data Set
Creating the Stats and Stats2 Data Sets
Creating the Table1 Table Definition
Programs That Illustrate Inheritance
ODS and the HTML Destination
HTML Links and References Produced by the HTML Destination
Files Produced by the HTML Destination
ODS HTML Statements for Running Examples in Different Operating Environments
Using a z/OS UNIX System Services HFS Directory for HTML Output
Using a z/OS PDSE for EBCDIC HTML Output
Using a z/OS PDSE for ASCII HTML Output
ODS Style Elements
General ODS Style Elements
Style Elements Affecting Template-Based Graphics
Style Elements Affecting Device-Based Graphics
Recommended Reading
Glossary
Product
Release
Base SAS
9.4_M1
9.4
9.3_M2
9.3_M1
9.3
9.21_M3
9.21_M2
9.21_M1
9.21
9.2
9.1.3
9.1.2
9.1
9.0
8.2
8.01
8.00
8.0
7.01
6.12
6.11
6.10
6.09
6.08
6.07
6.06
6.04
6.03
6.02
6.01
5.18
SAS/GRAPH ODS Graphics Designer
Type
Usage and Reference
Copyright Date
August 2012
Last Updated
07Aug2012