Routing the SAS Log and SAS Procedure Output |
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:
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.
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.
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:
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
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
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:
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.
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.
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:
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
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
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.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.