Changing the Default Routings in UNIX Environments

Techniques for Routing Output

There are five primary methods for routing your output.:
  • Using the default HTML destination.
  • 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
windowing environment
DMPRINT command
Print dialog box
FILENAME statement and PRTFILE, PRINT, and FILE commands
an external file
any mode
PRINTTO procedure and FILENAME statement
windowing environment
Print dialog box
FILENAME statement and PRTFILE, PRINT, and FILE commands
batch
LOG and PRINT system options
a UNIX command (pipe)
any mode
FILENAME statement and PRINTTO procedure
windowing environment
FILENAME statement and PRTFILE and PRINT commands
its usual location and to an external file
any mode
ALTLOG and ALTPRINT system options
windowing environment
FILE command
Print dialog box
a terminal
batch
FILENAME statement and PRINTTO procedure