<Syntax> |
|
|
|
END = label
The END= specifier is only permitted in a READ or WAIT statement.
|
|
|
|
|
|
<Semantics> |
|
|
|
The END= specifier causes transfer of control to the specified label if an end-of-file condition occurs during sequential or stream input.
If an end-of-file condition occurs in a READ or WAIT statement that does not have an END= specifier but does have an ERR= specifier, control is transferred to the ERR= label.
If an end-of-file condition occurs in a READ or WAIT statement that has no END=, ERR= or IOSTAT= specifier, the program is terminated.
The end-of-file condition can also be detected using the IOSTAT= specfier and the IS_IOSTAT_END intrinsic function.
|
|
|
|
|
|
<Related> |
|
|
|
EOR= specifier,
ERR= specifier,
IOMSG= specifier,
IOSTAT= specifier,
IS_IOSTAT_END intrinsic function,
READ statement,
WAIT statement.
|
|
|