Example: Apply OVRPRTF with *PRTF
You can apply the OVRPRTF command to all printer files by specifying *PRTF as the file name. The OVRPRTF command with *PRTF is applied if there is no other override for the printer file name at the same call level.
The following example shows how *PRTF works: Figure 1. An example of the OVRPRTF command and the *PRTF parameter. The figure gives an example of the OVRPRTF command and the *PRTF parameter.
Override 1 OVRPRTF FILE(OUTPUT) COPIES(6) +
LPI(6)
Override 2 OVRPRTF FILE(*PRTF) COPIES(1) +
LPI(8)
CALL PGM(X) When program X opens the file OUTPUT, the opened file has the following attributes:
When program X opens the file PRTOUT (or any printer file other than OUTPUT), the opened file has the following attributes:
- COPIES(6)
- From Override 1
- LPI(6)
- From Override 1
- COPIES(1)
- From Override 2
- LPI(8)
- From Override 2
Parent topic:
Usage of a generic override for printer files