Previous Page | Next Page

Routing the SAS Log and SAS Procedure Output

Routing Output in the SAS Windowing Environment


Default Output Destination in the Windowing Environment

In the windowing environment, the SAS log is automatically routed to the Log window, and the procedure output is automatically routed to the Output window.


Notes on Routing Output in the Windowing Environment

The LOG= and PRINT= system options are ignored in the windowing environment.

When you send your log or procedure output to a printer from the SAS windowing environment, you can use the FSFORM command to invoke the FORM window to set your default printer destination, page format, and so on. For more information about the OpenVMS specifics of the FSFORM command, see Host-Specific Frames of the Form Window. For general information about the FSFORM command, see the online SAS Help and Documentation.


Routing the Log to a Printer

To send the SAS log to a printer from the windowing environment, choose from the following methods:

PRINT

This command, issued from the command line of the Log window, sends the contents of the Log window to the queue of the default system printer (SYS$PRINT).

You can also use the PRTFILE command, which is described in Using the PRTFILE Command under OpenVMS.

$ SAS/ALTLOG=SYS$PRINT

This SAS command sends a copy of the SAS log to the SYS$PRINT printer queue and to the default destination (Log window). If you want to send the copy 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 from the windowing environment, choose from the following methods:

FILE file-specification

This command, issued from the command line of the Log window, sends a copy of the window's contents to the file associated with file-specification.

For more information about the FILE command, see FILE Command: OpenVMS.

$ SAS/ALTLOG=file-specification

This SAS command sends a copy of the SAS log to the disk file file-specification, as well as to the default destination (Log window). The following is an example of this command:

$ SAS/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 from the windowing environment, choose from the following methods:

PRINT

This command, issued from the command line of the Output window, sends the contents of the Output window to the queue of the default system printer (SYS$PRINT). See your system manager for the location of your default printer.

You can also use the PRTFILE command. For more information, see Using the PRTFILE Command under OpenVMS.

P selection-field command

When issued from the Results window, this selection-field command sends the procedure output to the default system printer. Also, you can edit your output from the Results window and then send the modified output to the printer. For more information about the Results window, see the online SAS Help and Documentation.

$ SAS/ALTPRINT=SYS$PRINT

This SAS command sends a copy of the procedure output to the SYS$PRINT printer queue and to the default destination (Output window). 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 from the windowing environment, choose from the following methods:

FILE file-specification

When issued from the command line of the Output window, this command sends a copy of the window's contents to the file associated with file-specification. For more information about the FILE command, see FILE Command: OpenVMS.

F selection-field command

When issued from the Results window, this selection-field command brings up a dialog box that asks for the filename and enables you to specify attributes such as REPLACE or APPEND. Also, you can edit your procedure output from the Results window and then send the modified output to a file. For more information about the Results window, see the online SAS Help and Documentation.

$ SAS/ALTPRINT=file-specification

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

$ SAS/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