The OVRPRTF command allows you to have one override for all the printer files in your job with the same set of values. Without the generic override, you would have to do a separate override for each of the printer files.
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:
Override 1 OVRPRTF FILE(OUTPUT) COPIES(6) +
|
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:
The following example shows how printer-file overrides are applied from multiple call levels by using the *PRTF value.
Program A Override 1 OVRPRTF FILE(*PRTF) COPIES(1) Override 2 OVRPRTF FILE(PRT2) COPIES(2) Override 3 OVRPRTF FILE(PRT4) COPIES(2) CALL PGM(B)
|
When program X opens the file PRT1, the opened file has the following attributes:
Because no specific overrides are found for PRT1, *PRTF overrides (1 and 4) are applied.
When program X opens the file PRT2, the opened file has the following attributes:
Because no specific override is found for PRT2 in program B, override 4 is applied. In program A, override 2 specifies PRT2 and is applied.
When program X opens the file PRT3, the opened file has the following attributes:
In program B, override 5 specifies PRT3 and is applied. Because no specific override is found for PRT3 in program A, override 1 is applied.
When program X opens the file PRT4, the opened file has the following attributes:
In program B, override 6 specifies PRT4 and is applied. In program A, override 3 specifies PRT4 and is applied.