Previous Page | Next Page

Directing SAS Log and SAS Procedure Output

Types of SAS Output


Overview of Types of SAS Output

For each SAS process, SAS can create three types of output:


SAS Log File

The SAS log file contains information about the processing of SAS statements. As each program step executes, notes are written to the SAS log along with any applicable error or warning messages. For further information, see SAS Log File.


SAS Procedure Output File

Whenever a SAS program executes a PROC step that produces printed output, SAS sends the output to the procedure output file. Beginning with Version 7, SAS procedure output is handled by the Output Delivery System (ODS), which enhances your ability to manage procedure output. Procedures that fully support ODS can

For more information about ODS, see SAS Output Delivery System: User's Guide.

For more information about the procedure output file, see SAS Procedure Output File.


SAS Console Log File

If an error, warning, or note must be written to the SAS log and the log is not available, the console log is used instead. The console log file is particularly useful for capturing log entries that are generated during SAS initialization, before the SAS log file is allocated. For further information about this file, see Console Log File.


Destinations of SAS Output Files

The following table shows the default destinations of the SAS output files.

Default Destinations for SAS Output Files
Processing Mode Log File Procedure Output File
batch printer printer
windowing environment (TSO) Log window Output window
interactive line (TSO) terminal terminal
noninteractive (TSO) terminal terminal

These default destinations are specified in the SAS cataloged procedure, in the SAS CLIST or in the SASRX exec , which you use to invoke SAS in batch mode and under TSO, respectively. Your system administrator might have changed these default destinations.

If you want to change the destination of these files, use the following table to help you decide which method you should choose.

Changing the Default Destination
Output Destination Processing Mode Method to Use Documentation
a printer any mode FILENAME statement and PRINTTO procedure Using the PRINTTO Procedure and Universal Printing

or

Using the PRINTTO Procedure and the FORM Subsystem


windowing environment under TSO PRINT command and the Universal Printing subsystem option display


Using the PRINT Command and Universal Printing
PRINT command and the FORM subsystem option display Using the PRINT Command and the FORM Subsystem
PRTFILE and PRINT commands Using the PRTFILE and PRINT Commands
an external file any mode PRINTTO procedure Directing Output to External Files with the PRINTTO Procedure

batch LOG= and PRINT= system options Directing Output to an External File at SAS Invocation
SASLOG DD and SASLIST DD statements Directing Output to External Files with DD Statements
its usual location and to an external file any mode ALTLOG= and ALTPRINT= system options Directing Output to External Files with System Options

windowing environment under TSO FILE command Directing Output to External Files with the FILE Command
a remote destination any mode FILENAME statement and PRINTTO procedure Directing Output to a Remote Destination

Beginning with Release 8.2, SAS output can also be routed via electronic mail (e-mail). For information about how SAS implements e-mail delivery, see Sending E-Mail from within SAS Software.

Previous Page | Next Page | Top of Page