!ERROR=11 - Missing or Duplicate Key
For BBj-specific information, see !ERROR Changes in BBj.
This error can be trapped with the DOM= option.
-
Attempting to read a record in a direct file using the KEY= option, when there is no such key in the file.
-
For single-keyed files, attempting to write a key using the KEY= option when that key already exists. PRO/5 issues this error only if the DOM= option is present.
-
For multi-keyed files, this error can indicate a duplicate key on one of the secondary unique keysets.
-
This error can also be reported if the key area of the file is damaged. If this is the case, you can recover the file with mkrecover, mrebuild, or _fix.