PL/I · Exception
What does ONCODE 80: UNDEFINEDFILE mean in PL/I?
An OPEN failed for reasons the more specific file conditions do not cover, commonly a conflict between the attributes declared for the file and the attributes specified on the OPEN statement, or between those attributes and the physical dataset itself.
An OPEN failed for reasons the more specific file conditions do not cover, commonly a conflict between the attributes declared for the file and the attributes specified on the OPEN statement, or between those attributes and the physical dataset itself.
Use the ONFILE built-in function inside the ON-unit to get the name of the file variable involved, then compare its DECLARE attributes against both the OPEN statement and the dataset's actual attributes (record format, organization) for a mismatch.