OA_ADD_PRINTER

Adds an additional printer to a request

Syntax

OA_ADD_PRINTER

 

Syntax

Description/Format

PRINTER=

Name of the printer
Format: script literal

COPIES=

Number of copies
Format: number

Default value: "0"

Comments

 

Only one printer can be defined with the statement OA_SET_PRINT_DEFAULTS. Use OA_ADD_PRINTER if more than one should be specified.   

Do so by calling this statement in the script and specify the particular printers. As soon as OA_SUBMIT_REQUEST has processed, the agent hands the printer specifications over to Oracle. If additional submits are used in the script, redefine the printers beforehand using OA_ADD_PRINTER.

The printer specified with OA_SET_PRINT_DEFAULTS is used for all subsequent OA_SUBMIT_REQUEST calls until the job ends or until the next OA_SET_PRINT_DEFAULTS statement is made.

If an error occurs when handing over a printer, this error is logged in the activation report and the job ends on return code 10.

Example

OA_ADD_PRINTER PRINTER='HPLJ',COPIES=2

 

See also: