Using ODS to Customize the Style and Structure of Output
ODS does more than just enable you to control output destinations. It also enables you to
customize the structure and style of your output. Since ODS uses table and style
templates (definitions) to display procedure and DATA step results, you can control
these results by creating customized table and style templates. You can also modify
existing style and table definitions if you do not want to create the definitions from
For information about the Output Delivery System, see SAS Output Delivery System:
Reformatting Values in Output
Certain SAS statements, procedures, and options enable you to print values using
specified formats. In a windowing environment, you can use the Properties window to
control how values are displayed. You can apply or change formats with the FORMAT
and ATTRIB statements, or with the Properties window in a windowing environment.
The FORMAT procedure enables you to design your own formats and informats, giving
you added flexibility in displaying values. See “FORMAT” in Base SAS Procedures
Guide for more information about the FORMAT procedure, and SAS System Options:
Reference for information about all other SAS system options.
Printing Missing Values
SAS represents ordinary missing numeric values in a SAS listing as a single period and
missing character values as a blank space. If you specify special missing values for
numeric variables, SAS writes the letter or the underscore. For character variables, SAS
writes a series of blanks equal to the length of the variable.
The MISSING= system option enables you to specify a character to print in place of the
period for ordinary missing numeric values. For more information, see the “MISSING=
System Option” in SAS System Options: Reference.
Sample SAS Output
Default HTML Output in the SAS Windowing Environment
Starting with SAS 9.3, the default destination is HTML when running SAS in the
windowing environment for the Windows and UNIX operating environments. The
default output is displayed in the SAS Results Viewer Window.
title 'Student Weight';
proc print data=sashelp.class;
162 Chapter 9 • SAS Output