Delete printer file overrides

If you want to delete an override before the program has completed running, you can use the Delete Override (DLTOVR) command. This command deletes only overrides that are active in the call level in which the command is entered. To identify an override, use the printer file name specified on the FILE parameter of the override command.

Following is an example that shows an override of a printer file (PRTF1) with a different printer file (PRTF2). On the second line of the example is the Delete Override (DLTOVR) command that is used to delete the override. The printer file named PRTF1 will be used to process the output from the application program.

OVRPRTF FILE(PRTF1)  TOFILE(PRTF2)
DLTOVR FILE(PRTF1)

You can delete all printer file overrides at this call level by specifying *ALL for the FILE parameter.

Following is an example that shows two printer file overrides, PRTC and PRT3. The override is changing the COPIES parameter value in both cases. The third line of the example shows the Delete Override (DLTOVR) command with the FILE parameter value set to *ALL. This means the overrides to PRTC and PRT3 are deleted.

OVRPRTF FILE(PRTC)  COPIES(2)
OVRPRTF FILE(PRT3)  COPIES(4)
DLTOVR FILE(*ALL)