Chapter Contents

Previous

Next
SAS Companion for the OS/390 Environment

Types of SAS Output

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

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:

For more information on ODS, see The Complete Guide to the SAS Output Delivery System.

For more information on 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 generated during SAS initialization, before the SAS log file is allocated. For further information on this file, see Console Log File.

Default Destinations for SAS Output Files shows the default destinations of the SAS output files.

Default Destinations for SAS Output Files
Processing Mode Log File Procedure Output File Console Log File
batch printer printer file specified by CONSOLELOG=
windowing environment (TSO) LOG window OUTPUT window file specified by CONSOLELOG=
interactive line (TSO) terminal terminal file specified by CONSOLELOG=
noninteractive (TSO) terminal terminal file specified by CONSOLELOG=

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

This chapter explains how to change the destination of these files. Use Changing the Default Destination to help you decide which method you should choose to change the destinations.

Changing the Default Destination
To direct your SAS log or procedure output to... Using this mode of processing... Use this method... See...
a printer any mode FILENAME statement and PRINTTO procedure Using the PRINTTO Procedure

windowing environment under TSO PRINT command and FORM subsystem 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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.