Previous Page | Next Page

The PRTDEF Procedure

PROC PRTDEF Statement


PROC PRTDEF <option(s)>;

Task Option
Specify the input data set that contains the printer attributes DATA=
Specify that the default operation is to delete the printer definitions from the registry DELETE
Specify that the registry entries are being created for export to a different host FOREIGN
Specify that a list of printers that are created or replaced will be written to the log LIST
Specify that any printer name that already exists will be modified by using the information in the printer attributes data set REPLACE
Specify whether the printer definitions are available to all users or just the users running PROC PRTDEF USESASHELP


Options

DATA=SAS-data-set

specifies the SAS data set that contains the printer attributes.

Requirements: Printer attributes variables that must be specified are DEST, DEVICE, MODEL, and NAME, except when the value of the variable OPCODE is DELETE. In that case only the NAME variable is required.
See: Input Data Set: PRTDEF Procedure
DELETE

specifies that the default operation is to delete the printer definitions from the registry.

Interaction: If both DELETE and REPLACE are specified, then DELETE is the default operation.
Tip: If the user-defined printer definition is deleted, then the administrator-defined printer can still appear if it exists in the SASHELP catalog.
FOREIGN

specifies that the registry entries are being created for export to a different host. As a consequence, tests of any host-dependent items, such as the TRANTAB, are skipped.

LIST

specifies that a list of printers that is created or replaced is written to the log.

REPLACE

specifies that the default operation is to modify existing printer definitions. Any printer name that already exists is modified by using the information in the printer attributes data set. Any printer name that does not exist is added.

Interaction: If both REPLACE and DELETE are specified, then a DELETE is performed.
USESASHELP

specifies that the printer definitions are to be placed in the SASHELP library, where they are available to all users. If the USESASHELP option is not specified, then the printer definitions are placed in the current SASUSER library, where they are available to the local user only.

Restriction: To use the USESASHELP option, you must have permission to write to the SASHELP catalog.

Operating Environment Information:   You can create printer definitions with PROC PRTDEF in the Windows operating environment. However, because Universal Printing is turned off by default in Windows, these printer definitions do not appear in the Print window.

If you want to use your printer definitions when Universal Printing is turned off, then do one of the following:

  [cautionend]

Previous Page | Next Page | Top of Page