What it means
FILENOTFOUND is RESP 12 with RESP2 1 on READ, WRITE and READNEXT. It means the name in the FILE option is not defined to CICS.
The default action is to end the task abnormally.
Typical causes
- The name in the FILE option is not defined to CICS.
- Without SYSID, CICS uses the file resource definition to locate the data set, so no matching file definition produces this condition.
How to fix it
- Check the name the program passes in FILE against the file definitions in the region.
- If the file is not defined, define and install it.
- Code RESP so the task does not end abnormally.