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.
If you redirect a field level file or any other file containing externally described data, it is typically necessary to specify the command LVLCHK(*NO) or recompile the program. With level checking that is turned off, it is still necessary that the record formats in the file be compatible with the records in the program. If the formats are not compatible, you cannot predict the results.
Parent topic:
File redirection