Previous Page | Next Page

Routing the SAS Log and SAS Procedure Output

Routing Output in Interactive Line Mode


Default Output Destination in Interactive Line Mode

If you run your SAS program in interactive line mode, the SAS log and procedure output appear on the monitor by default. SAS statements from your program, the SAS log, and procedure output (if the program produces any) are interleaved on the monitor based on the order of DATA and PROC steps in your program.


Routing the Log to a Printer

To send the SAS log to a printer in interactive line mode, choose from the following methods:

$ SAS/NODMS/LOG=SYS$PRINT

This SAS command sends the SAS log to the SYS$PRINT printer queue instead of the default destination (the monitor). If you want to send the log to a different printer, you must redefine the SYS$PRINT logical name.

$ SAS/NODMS/ALTLOG=SYS$PRINT

This SAS command sends a copy of the SAS log to the SYS$PRINT printer queue and to the default destination (the monitor). If you want to send the log to a different printer, you must redefine the SYS$PRINT logical name.

PROC PRINTTO LOG=fileref;

This procedure statement sends any following SAS log entries to the default system printer during a SAS session. You must have defined fileref in a FILENAME statement or function with the PRINTER device-type keyword. For more information, see PRINTTO Procedure: OpenVMS and Device-Type Keywords in the FILENAME statement.


Routing the Log to a Disk File

To send the SAS log to a disk file in interactive line mode, choose one of the following methods:

$ SAS/NODMS/LOG=file-specification

This SAS command sends the SAS log to the disk file file-specification instead of the default destination (the monitor). The following is an example of this command:

$ SAS/NODMS/LOG=MYLOG.LOG
$ SAS/NODMS/ALTLOG=file-specification

This SAS command sends a copy of the SAS log to the disk file file-specification and to the default destination (the monitor). The following is an example of this command:

$ SAS/NODMS/ALTLOG=MYLOG.LOG
PROC PRINTTO LOG=file-specification;

This procedure statement sends any following SAS log entries to the disk file associated with file-specification during a SAS session. The value for file-specification can be any valid external file specification discussed in Identifying External Files to SAS.


Routing Procedure Output to a Printer

To send the procedure output to a printer in interactive line mode, choose from the following methods:

$ SAS/NODMS/PRINT=SYS$PRINT

This SAS command sends the procedure output to the SYS$PRINT printer queue instead of to the default destination (the monitor). If you want to send the procedure output to a different printer, you must redefine the SYS$PRINT logical name.

$ SAS/NODMS/ALTPRINT=SYS$PRINT

This SAS command sends a copy of the procedure output to the SYS$PRINT printer queue and to the default destination (the monitor). If you want to send the procedure output to a different printer, you must redefine the SYS$PRINT logical name.

PROC PRINTTO PRINT=fileref;

This procedure statement sends any following procedure output to the default system printer during a SAS session. You must have defined fileref in a FILENAME statement or function with the PRINTER device-type keyword. For more information, see PRINTTO Procedure: OpenVMS and Device-Type Keywords in the FILENAME statement.


Routing Procedure Output to a Disk File

To send the procedure output to a disk file in interactive line mode, choose from the following methods:

$ SAS/NODMS/PRINT=file-specification

This SAS command sends the procedure output to the disk file file-specification instead of to the default destination (the monitor). The following is an example of this command:

$ SAS/NODMS/PRINT=MYPROG.LIS
$ SAS/NODMS/ALTPRINT=file-specification

This SAS command sends a copy of the procedure output to the disk file file-specification and to the default destination (the monitor). The following is an example:

$ SAS/NODMS/ALTPRINT=MYPROG.LIS
PROC PRINTTO PRINT=file-specification;

This procedure statement sends any following procedure output to the disk file associated with file-specification during a SAS session. The value for file-specification can be any valid external file specification discussed in Identifying External Files to SAS.

Previous Page | Next Page | Top of Page