File redirection
File redirection refers to using overrides to change the name, library, or type of the file you process.
For example, you can substitute:
- One tape file for another tape file.
- One diskette file for another diskette file.
- Or change from using a tape or diskette file to using a display file, a printer file, an ICF file, and so on.
System code might or might not support file redirection. For rules on how system code processes overrides, see Recognizing commands that ignore or restrict overrides.
- Overriding files with the same file types
When a program replaces a file that is used with another file of the same type, the system processes the new file in the same manner as it processes the original file.
- Overriding files with different file types
If you change to a different type of file, the system ignores the device-dependent characteristics and reads or writes the records sequentially.
- Recognizing commands that ignore or restrict overrides
Here is a list of commands that ignore overrides, allow overrides, and have restrictions on overrides.
Parent topic:
Using overrides
Related concepts
Recognizing commands that ignore or restrict overrides
Related tasks
Overriding file names in high-level language programs