Generic override for printer files

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.

By specifying *PRTF as the file name on the OVRPRTF command, you can apply one override to all printer files.

The override specified on 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) LPI(6)
Override 2
OVRPRTF FILE(*PRTF) COPIES(1) LPI(8)
 
CALL PGM(X)

When program X opens the file named OUTPUT, the opened file has the following attributes:

COPIES(6)
From Override 1
LPI(6)
From Override 1

When program X opens the file named PRTOUT, the opened file has the following attributes:

COPIES(1)
From Override 2
LPI(8)
From Override 2