DUPREC

From BR Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The DUPREC, or duplicate record, error condition is used when a REC= clause is used on a file opened for the RELATIVE access method The DUPREC error condition may be used at the end of a program statement and in the Exit statement, but it is not accepted by the ON error statement.

Error Traps:

DUPREC traps an attempt to WRITE to an existing record (REWRITE must be used instead of WRITE).