Override file names

Overriding file names is another simple form that you change the file used by the program. This might be useful for files that you moved or renamed after the program compiled.

For example, you want to print the output from your application program by using the printer file REPORTS instead of the printer file OUTPUT (the application program specifies the OUTPUT printer file). Before you run the program, enter the following command:
OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)

The CRTPRTF command must have created the file REPORTS before it can use the file.