Chapter 9
SAS Output
Definitions for SAS Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Routing and Customizing SAS Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Default Output Destination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Changing the Output Destination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Customizing Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Sample SAS Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Default HTML Output in the SAS Windowing Environment . . . . . . . . . . . . . . . . 162
Traditional SAS LISTING Output in the SAS Windowing Environment . . . . . . . 163
The SAS Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Structure of the Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
The SAS Log in Interactive Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
The SAS Log in Batch, Line, or Objectserver Modes . . . . . . . . . . . . . . . . . . . . . . 166
Writing to the Log in All Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Customizing the Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Definitions for SAS Output
SAS output is the result of executing SAS programs. Most SAS procedures and some
DATA step applications produce output. A SAS program can produce some or all of the
following types of output:
program results
contain the programmatic results from SAS procedures and SAS DATA step
applications. These results can be sent to a file or printed as a report. There are a
variety of options, formats, statements, and commands available in SAS to customize
your output. The Output Delivery System enables you to specify output destinations
to control how your output is stored, table definitions to control how your output is
structured, and style templates to control the stylistic elements of your output. For
more information, see SAS Output Delivery System: Users Guide.
Here are a few examples of the types of output that you can get from running SAS
programs:
a SAS data set
an HTML file for web viewing
a simple listing report
155

Get SAS 9.4 Language Reference, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.