The EOR= specifier is only permitted in a READ statement that has ADVANCE='NO', or in a WAIT statement.
<Semantics>
The EOR= specifier causes transfer of control to the specified label if an end-of-record condition occurs during nonadvancing input.
The end-of-record condition can also be detected using the IOSTAT= specifier and the IS_IOSTAT_EOR intrinsic function.