Overrides
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 make minor changes in how a program functions. Overrides allow you to select the data, on which they operate, without recompiling the program. These topics explain how to use overrides.
- Overview: Overrides
An override is a CL command that temporarily changes a file name, a device name, or remote location name associated with the file, or some of the other attributes of a file.
- Application of overrides
You can perform two general types of overrides, which are file overrides and overrides for program device entries.
- Deletion of overrides
When a program that has been called returns control to the calling program, the system deletes any overrides specified in the call level of the called program.
- Display of overrides
You can use the Display Override (DSPOVR) command to display file overrides at the job level, the activation group level, and at multiple call levels for a job. You can display all file overrides or overrides for a specific file.
- File redirection
File redirection lets you use overrides to direct data input or output to a device of a different type; for example, to send data that was intended for a diskette to a printer instead.
Parent topic:
Working with database files
Related concepts
Scope of opened files
Displaying information about open files