Abend 001 is issued for the current task because of an I/O error or simulated I/O error, and message IEC020I carries the return code (rc) that explains it.
Return code 0 means the record length and block size in the DCB, DCBE or DD statement differ from those of the data set; 1 means an I/O error with no SYNAD exit; 4 (QSAM) means EROPT is ABE or invalid and/or no SYNAD exit was given; 5 (QSAM) means a GET was issued after end of file.
Typical causes
LRECL or BLKSIZE in the DCB, DCBE or DD statement differs from the data set (rc 0).
An I/O error with no SYNAD exit specified (rc 1).
A write to a data set opened for input, or a read from one opened for output (rc 1, BSAM/BPAM).
A concatenated data set has attributes different from the first one (rc 1).
A GET issued after end of file (rc 5, QSAM).
How to fix it
Specify a SYNAD routine in the DCB or DCBE if the program is to handle I/O errors.
Correct EROPT in the DCB (ACC or SKP may be chosen).
Make sure the program does not issue GET after end of data.
Correct LRECL and/or BLKSIZE in the DCB or DD statement.
For a hardware error, see the accompanying IEA000I message.