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

S213

OPEN error on a DASD data set (IEC143I)SYSTEM ABEND · CHECKED 2026-11-14
Checked against IBM documentation

OPEN failed for a data set on a direct access device; message IEC143I gives a return code that pinpoints the problem.

QUICK ANSWER

OPEN failed for a data set on a direct access device; message IEC143I gives a return code that pinpoints the problem.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The format-1 DSCB was not found on the volume named by the DD statement or the catalog (rc 04, 0C).
  2. The volume or data set was in use by another job in a conflicting way (rc 04).
  3. DSORG or DCB attributes disagree with the data set, such as DSORG=PO for a non-partitioned data set (rc 14).
  4. RECFM or key length conflicts with a PDSE or compressed data set (rc 38, 3C).
  5. A PDS already open for output with DISP=SHR was opened for output again (rc 30).

CHECKED 14 Nov 2026 IBM: IEC143I - z/OS 3.2.0 MVS System Messages

TRY IT: JCL CHECKER ▸

MOST LIKELY

The format-1 DSCB was not found on the volume named by the DD statement or the catalog (rc 04, 0C).

FIRST CHECK

Check the DSNAME and VOLUME parameters in the DD statement or the catalog are correct.

TRY IT ▸

JCL checker

What it means

Abend 213 accompanies IEC143I when OPEN fails for a data set on a direct access device. IBM calls this probably a user error.

Return code 04 covers an unreadable or missing format-1 DSCB on the first volume, an altered data set name in the JFCB, or a volume in use by another job.

Typical causes

  • The format-1 DSCB was not found on the volume named by the DD statement or the catalog (rc 04, 0C).
  • The volume or data set was in use by another job in a conflicting way (rc 04).
  • DSORG or DCB attributes disagree with the data set, such as DSORG=PO for a non-partitioned data set (rc 14).
  • RECFM or key length conflicts with a PDSE or compressed data set (rc 38, 3C).
  • A PDS already open for output with DISP=SHR was opened for output again (rc 30).

How to fix it

  1. Check the DSNAME and VOLUME parameters in the DD statement or the catalog are correct.
  2. For rc 14, change the DCB DSORG to PS, or recreate the data set with a directory in the SPACE parameter.
  3. For rc 30, see message IEC813I to learn who owns the PDS resource.
  4. For rc 38, set the key length to zero (zero or eight for reading a PDSE directory), then rerun.
  5. For rc 3C, make the DCB record format consistent with the DSCB, then rerun the job.