Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4

See: PRINTTO Procedure in the documentation for your operating environment.

PROC PRINTTO < option(s) >;

PROC PRINTTO Statement

Tip: To reset the destination for the SAS log and procedure output to the default, use the PROC PRINTTO statement without options.

Tip: To route the SAS log and procedure output to the same file, specify the same file with both the LOG= and PRINT= options.

Restriction: To route SAS log and procedure output directly to a printer, you must use a FILENAME statement with the PROC PRINTTO statement. See Example 4 on page 801.

PROC PRINTTO < option(s) >;

To do this

Use this option

provide a description for a SAS log or procedure output stored in a SAS catalog entry

LABEL=

route the SAS log to a permanent external file or SAS catalog entry

LOG=

combine the SAS log and procedure output into a single file

LOG= and PRINT= with same destination

replace the file instead of appending to it

NEW

route procedure output to a permanent external file or SAS catalog entry or printer.

PRINT=

Without Options

Using a PROC PRINTTO statement with no options

Interaction: To close the appropriate file and to return only the SAS log or procedure output to its default destination, use LOG=LOG or PRINT=PRINT.

Featured in: Example 1 on page 792 and Example 2 on page 795

Options

LABEL= description

LOG=LOG file-specification SAS-catalog-entry

NEW

PRINT= PRINT file-specification SAS-catalog-entry

UNIT= nn

Категории