Always enabled.
Causes the keyed record to be undefined, and the statement in which it appears to be ignored.
When a READ, REWRITE, or DELETE statement containing a KEY option cannot find a record with the specified key.
By a WRITE statement whose KEYFROM option specifies the key of an existing record.
Just before the condition is signaled, the key value is assigned as the value to be returned by the ONKEY built-in function.
KEY file-reference
The following is an example of the ON KEY(file-reference) statement.
ON KEY(OUTFILE) BEGIN; PUT SKIP LIST('INVALID KEY SPECIFIED FOR OUTFILE'); PUT SKIP LIST('KEY WAS'||ONKEY()); END;