Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

FILENOTFOUND

DFHRESP(FILENOTFOUND) = 12CICS RESP CONDITION · CHECKED 2026-11-14
Checked against IBM documentation

The file name in the FILE option is not defined to CICS.

QUICK ANSWER

The file name in the FILE option is not defined to CICS.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The name in the FILE option is not defined to CICS.
  2. Without SYSID, CICS uses the file resource definition to locate the data set, so no matching file definition produces this condition.

CHECKED 14 Nov 2026 IBM: READ (CICS Transaction Server for z/OS 6.x) · WRITE (CICS Transaction Server for z/OS 6.x) · READNEXT (CICS Transaction Server for z/OS 6.x)

MOST LIKELY

The name in the FILE option is not defined to CICS.

FIRST CHECK

Check the name the program passes in FILE against the file definitions in the region.

TRY IT ▸

Site search

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

  1. Check the name the program passes in FILE against the file definitions in the region.
  2. If the file is not defined, define and install it.
  3. Code RESP so the task does not end abnormally.