There are four primary methods for routing your output:
using the Print dialog box. The Print dialog box is available when you are using the SAS windowing environment.
issuing windowing environment commands. The PRTFILE, PRINT, and FILE commands can be issued from any command line and can be used to send output to external files or to other devices defined with the FILENAME statement.
using the PRINTTO procedure. You can use the PRINTTO procedure in any mode. Using the FILENAME statement with the PRINTTO procedure is the most flexible way of routing your output.
using SAS system options, such as PRINT, LOG, ALTPRINT, or ALTLOG, to specify alternate destinations.
Use the following table to help you decide which method you should choose to change the routing.
To route your SAS log or output to... | Using this mode of processing... | Use this method... | See... |
---|---|---|---|
a printer | any mode | FILENAME statement (UPRINTER or PRINTER device type) and PRINTTO procedure | "Using the PRINTTO Procedure in UNIX Environments" on page 161 |
windowing environment | DMPRINT command | "Using the Print Dialog Box in UNIX Environments" on page 157 | |
Print dialog box | "Using the Print Dialog Box in UNIX Environments" on page 157 | ||
FILENAME statement and PRTFILE, PRINT, and FILE commands | "Using PRTFILE and PRINT with a Fileref" on page 160 | ||
an external file | any mode | PRINTTO procedure and FILENAME statement | "Using the PRINTTO Procedure in UNIX Environments" on page 161 |
windowing environment | Print dialog box | "Using the Print Dialog Box in UNIX Environments" on page 157 | |
FILENAME statement and PRTFILE, PRINT, and FILE commands | "Using PRTFILE and PRINT with a Fileref" on page 160 | ||
batch | LOG and PRINT system options | "Using SAS System Options to Route Output" on page 163 | |
a UNIX command (pipe) | any mode | FILENAME statement and PRINTTO procedure | "Using the PRINTTO Procedure in UNIX Environments" on page 161 |
windowing environment | FILENAME statement and PRTFILE and PRINT commands | "Using PRTFILE and PRINT with a Fileref" on page 160 | |
its usual location and to an external file | any mode | ALTLOG and ALTPRINT system options | "Using SAS System Options to Route Output" on page 163 |
windowing environment | FILE command | "Using the FILE Command" on page 161 | |
Print dialog box | "Using the Print Dialog Box in UNIX Environments" on page 157 | ||
a terminal | batch | FILENAME statement and PRINTTO procedure | "Routing Output to a Terminal" on page 163 |