The PRTDEF Procedure |
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 |
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 |
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. |
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.
specifies that a list of printers that is created or replaced is written to the log.
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. |
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:
specify the printer definition as part of the PRINTERPATH system option
from the Output Delivery System (ODS), issue the following code:
ODS PRINTER SAS PRINTER=myprinter;where myprinter is the name of your printer definition.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.