A READ or similar command could not find a record matching the search argument supplied, so CICS raised NOTFND.
QUICK ANSWER
A READ or similar command could not find a record matching the search argument supplied, so CICS raised NOTFND.
LIKELY CAUSES, IN THE ORDER OF THIS ENTRY
The RIDFLD key, RBA or relative record number does not match any record in the file.
A data table has no entry for the key, for example because the record was rejected by the XDTRD user exit during loading or later deleted from the table.
A READ of a remote file has no KEYLENGTH in the program or the file definition and the real key is longer than 4 characters.
XRBA was specified with a RIDFLD value above 4 GB, but the data set is not an extended ESDS.
NOTFND (EIBRESP 13) is raised when a file READ cannot retrieve a record for the search argument given in RIDFLD. Unless the program tests RESP or handles the condition, the default action is to terminate the task abnormally.
For data tables, the absence of an entry in the table does not prove the record is missing from the source data set: it may have been rejected at load time by the XDTRD exit or deleted from the table.
Typical causes
The RIDFLD key, RBA or relative record number does not match any record in the file.
A data table has no entry for the key, for example because the record was rejected by the XDTRD user exit during loading or later deleted from the table.
A READ of a remote file has no KEYLENGTH in the program or the file definition and the real key is longer than 4 characters.
XRBA was specified with a RIDFLD value above 4 GB, but the data set is not an extended ESDS.
How to fix it
Check that the RIDFLD value is exactly the key (or RBA or RRN) of the record you expect.
If the next higher key is acceptable, consider GTEQ, which returns the first greater key when the exact one is not found.
For a remote file, give KEYLENGTH in the program or in the FILE definition.
Use the RESP option and test for NOTFND so the program can handle a missing record.