Theat End Clause; Error Handling Considerations - IBM 5280 Programmer's Manual

Distributed data system, cobol
Hide thumbs Also See for 5280:
Table of Contents

Advertisement

TheAT END Clause
You can specify an AT END clause with a READ in sequential access mode.
When the end-of-file is detected, control is passed to the imperative statement
that follows AT END. An EXCEPTION jERROR procedure, if specified,
will not be executed.
If the FILE STATUS clause is specified, a value is placed in the Status Key
to indicate the condition.
Error Handling Considerations
Figure 5.3 shows the actions taken for all the combinations of AT END,
INY ALID KEY, and EXCEPTION jERROR procedure based on the first
digit of the Status Key.
tffNote the following:
The return is always to the next verb unless the request that caused the
error contained an AT END or INY ALID KEY clause.
The EXCEPTION jERROR procedure is executed only if the file is in
the open status.
If an AT END or INY ALID KEY clause is present, an
EXCEPTION jERROR procedure will not be executed when either of
these two conditions occur.
Chapter 5. Diskette Input/Output
5- 9

Advertisement

Table of Contents
loading

Table of Contents