Overriding file names

Another simple form of overriding a file is to change the file that is used by the program. This may 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:

OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]