PL/I · Exception
What does ONCODE 70: ENDFILE mean in PL/I?
A sequential READ reached the end of a file, or a SIGNAL ENDFILE statement was executed directly.
A sequential READ reached the end of a file, or a SIGNAL ENDFILE statement was executed directly.
This is the normal way a program detects end of file. If the program is stopping earlier than expected, check for an extra READ, or a file genuinely shorter than the program assumes.