Adds an additional printer to a request
OA_ADD_PRINTER
PRINTER=...
[,COPIES=...]
| Syntax | Description/Format | 
|---|---|
| PRINTER= | Name of the printer | 
| COPIES= | Number of copies Default value: "0" | 
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.
OA_ADD_PRINTER PRINTER='HPLJ',COPIES=2
See also:
About the JCL of Oracle Applications