Restrictions: | To route
SAS log and procedure output directly to a printer, you must use a
FILENAME statement with the PROC PRINTTO statement. See Routing SAS Log or Procedure Output Directly to a Printer and Routing to a Printer. The PRINTTO procedure does not define ODS destinations. When SAS is started in objectserver mode, the PRINTTO procedure does not route log messages to the log specified by the ALTLOG= system option. |
Tips: | To reset the destination for the SAS log and procedure
output to the default, use the PROC PRINTTO statement without options.
To route the SAS log and procedure output to the same file, specify the same file with both the LOG= and PRINT= options. |
Examples: | Routing to External Files Routing to SAS Catalog Entries |
The NEW option replaces the existing contents of a file with the new log. Otherwise, the new log is appended to the file.
To route the SAS log and procedure output to the same file, specify the same file with both the LOG= and PRINT= options.
When routing the log to a SAS catalog entry, you can use the LABEL option to provide a description for the entry in the catalog directory.
When the log is routed to a file other than the default log file and programs are submitted from multiple sources, the final SAS system messages that contain the real and CPU times are written to the default SAS log.
When routing the SAS log, include a RUN statement in the PROC PRINTTO statement. If you omit the RUN statement, the first line of the following DATA or PROC step is not routed to the new file. (This occurs because a statement does not execute until a step boundary is crossed.)
ods listing;
before
you run the PRINTTO procedure.
The NEW option replaces the existing contents of a file with the new procedure output. If you omit NEW, the new output is appended to the file.
To route the SAS log and procedure output to the same file, specify the same file with both the LOG= and PRINT= options.
When routing procedure output to a SAS catalog entry, you can use the LABEL option to provide a description for the entry in the catalog directory.