COBOL · File status code

File Status 23

What does File Status 23 mean in COBOL?

A READ, REWRITE, DELETE, or START by key did not find a record matching the key value supplied, in an indexed or relative file.

File Status 23IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

A READ, REWRITE, DELETE, or START by key did not find a record matching the key value supplied, in an indexed or relative file.

Fix

Confirm the exact key value being searched for and that the record was actually written under that key. Also check for a prior unhandled INVALID KEY on the WRITE that should have created it.

Pending source verification. Not yet checked against official documentation.

Related file status code