Syntax: PRTDEF Procedure


PROC PRTDEF < option(s) >;

PROC PRTDEF Statement

PROC PRTDEF < option(s) >;

To do this

Use this 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 input 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 which case only the NAME variable is required.

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 may 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 are created or replaced will be written to the log.

REPLACE

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

  • Interaction: If both REPLACE and DELETE are specified, then a DELETE will be performed.

USESASHELP

  • specifies that the printer definitions that 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 that 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.




Base SAS 9.1.3 Procedures Guide (Vol. 1)
Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4
ISBN: 1590472047
EAN: 2147483647
Year: 2004
Pages: 260

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net