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.

Table 6.2: Decision Table: Changing the Default Destination

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




SAS 9.1 Companion for UNIX Environments
SAS 9.1 Companion For Unix Enivronments
ISBN: 1590472101
EAN: 2147483647
Year: 2004
Pages: 185
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net