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

S013

Data set OPEN failed (IEC141I)SYSTEM ABEND · CHECKED 2026-11-14
Checked against IBM documentation

An OPEN macro failed; message IEC141I carries a hexadecimal return code that names the exact DCB or data set problem.

QUICK ANSWER

An OPEN macro failed; message IEC141I carries a hexadecimal return code that names the exact DCB or data set problem.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. A member that was named could not be found in the partitioned data set (rc 18).
  2. BLKSIZE is not a multiple of LRECL, or for RECFM=V BLKSIZE is not at least 4 bytes greater than LRECL (rc 20).
  3. RECFM=F specified but BLKSIZE not equal to LRECL (rc 60).
  4. The DCB MACRF value conflicts with the OPEN option, such as no GET/READ for input (rc 24) or no PUT/WRITE for output (rc 28).
  5. A QSAM data set with BLKSIZE=0 where no usable block size could be found (rc 34).

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

TRY IT: RECORD DECODER ▸

MOST LIKELY

A member that was named could not be found in the partitioned data set (rc 18).

FIRST CHECK

Read the return code in IEC141I and correct the cause that code describes, then rerun the job.

TRY IT ▸

Record decoder

What it means

Abend 013 accompanies IEC141I when an error occurs during OPEN processing; the return code in the message says which check failed.

Examples: 18 means a member named in the DSNAME was not found in the partitioned data set; 20 means BLKSIZE is not a multiple of LRECL (or LRECL is 0 with RECFM=FB/FBS) for a queued-access sequential data set; 60 means RECFM=F with BLKSIZE not equal to LRECL.

Typical causes

  • A member that was named could not be found in the partitioned data set (rc 18).
  • BLKSIZE is not a multiple of LRECL, or for RECFM=V BLKSIZE is not at least 4 bytes greater than LRECL (rc 20).
  • RECFM=F specified but BLKSIZE not equal to LRECL (rc 60).
  • The DCB MACRF value conflicts with the OPEN option, such as no GET/READ for input (rc 24) or no PUT/WRITE for output (rc 28).
  • A QSAM data set with BLKSIZE=0 where no usable block size could be found (rc 34).

How to fix it

  1. Read the return code in IEC141I and correct the cause that code describes, then rerun the job.
  2. Correct LRECL, BLKSIZE and RECFM in the DCB or DD statement so they agree.
  3. For rc 60, use RECFM=FB or make LRECL and BLKSIZE equal.
  4. If the DD is part of a concatenation, check the sequential concatenation requirements.
  5. For rc C1, contact the system programmer to investigate the failing installation exit.