Using overrides
You can use overrides to make temporary changes to file attributes and minor changes in how a program functions.
You can use overrides to temporarily change a file name, a device name associated with the file, or some of the other attributes of a file. Overrides allow you to select the data, on which they operate, without recompiling the program.
When using overrides, the Open scope parameter (OPNSCOPE) should be set to *JOB .
- Overriding file attributes
The simplest form of overriding a file is to override some attributes of the file.
- Overriding file names in high-level language programs
Another form of overriding a file is to change the file that is used by the program. This can be useful for moved or renamed files after you compile the program.
- Displaying overrides
To display all file overrides or file overrides for a specific file, you can use the Display Override (DSPOVR) command.
- Deleting overrides
If you want to delete an override, you can use the Delete Override (DLTOVR) command.
- File redirection
File redirection refers to using overrides to change the name, library, or type of the file you process.
Parent topic:
Tape files