Override file names or types

Another simple form of overriding a file is to change which file is used by the program. This might be useful for files that have been moved or renamed after the program has been compiled. For example, you want the output from your application program to be printed using the printer file named REPORTS instead of the printer file named OUTPUT (OUTPUT is specified in the application program). Before you run the program, enter the following:

OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)

The file REPORTS must have been created (CRTPRTF command) before it can be used.

If you want to override to a different type of file, you use the override command for the new type of file. For example, if you are overriding a diskette file with a printer file, use the Override with Printer File (OVRPRTF) command.