SAS Institute. The Power to Know

SAS(R) 9.2 Companion for UNIX Environments

Previous Page | Next Page

Printing and Routing Output

Changing the Default Routings in UNIX Environments


Techniques for Routing Output

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.


Determining Which Technique to Use When Changing the Routing

Use the following table to help you decide which method you should choose to change the routing.

Decision Table: Changing the Default Destination
Output destination for your SAS log or procedure output Processing mode Method See
a printer any mode FILENAME statement (UPRINTER or PRINTER device type) and PRINTTO procedure Using the PRINTTO Procedure in UNIX Environments

windowing environment DMPRINT command Using the Print Dialog Box in UNIX Environments


Print dialog box Using the Print Dialog Box in UNIX Environments


FILENAME statement and PRTFILE, PRINT, and FILE commands Printing the Contents of a Window
an external file any mode PRINTTO procedure and FILENAME statement Using the PRINTTO Procedure in UNIX Environments

windowing environment Print dialog box Using the Print Dialog Box in UNIX Environments


FILENAME statement and PRTFILE, PRINT, and FILE commands Printing the Contents of a Window

batch LOG and PRINT system options Using SAS System Options to Route Output
a UNIX command (pipe) any mode FILENAME statement and PRINTTO procedure Using the PRINTTO Procedure in UNIX Environments

windowing environment FILENAME statement and PRTFILE and PRINT commands Printing the Contents of a Window
its usual location and to an external file any mode ALTLOG and ALTPRINT system options Using SAS System Options to Route Output

windowing environment FILE command Using the FILE Command


Print dialog box Using the Print Dialog Box in UNIX Environments
a terminal batch FILENAME statement and PRINTTO procedure Routing Output to a Terminal

Previous Page | Next Page | Top of Page