NOREC: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The NOREC error condition can be specified at the end of a program statement and in the Exit statement, but it cannot be used with the ON error statement. ==Error Traps:=== N...") |
No edit summary |
||
Line 1: | Line 1: | ||
The NOREC error condition can be specified at the end of a program statement and in the Exit statement, but it cannot be used with the ON error statement. | The NOREC error condition (Error Number [[57]]) can be specified at the end of a program statement and in the Exit statement, but it cannot be used with the ON error statement. | ||
==Error Traps:=== | ==Error Traps:=== |
Latest revision as of 17:14, 7 April 2021
The NOREC error condition (Error Number 57) can be specified at the end of a program statement and in the Exit statement, but it cannot be used with the ON error statement.
Error Traps:=
NOREC traps the following three types of errors when a file is opened for RELATIVE access with a REC= clause:
- 1.) The specified record has been deleted.
- 2.) The number is at least two greater than the last record number of the file (for WRITE).
3.) The number is greater than the last record number in the file (for READ).