Abend 237 occurs at end-of-volume and comes with message IEC023I. Return code 04 means the DCB block count does not match the trailer label, probably because a block was missed.
Other codes cover DSNAME mismatches on a later volume, large block size without the large block interface, and DEB problems.
Typical causes
Block count in the DCB differs from that in the trailer label, probably due to a hardware error (return code 04).
The DSNAME in the header label on the second or later volume does not match the JFCB (return code 08).
Blocks processed, based on tape position, do not match the DCB count, or EROPT=SKIP hit an I/O error on a multi-volume tape (return code 0C).
A tape data set with block size above 32760 followed in a concatenation without the large block interface (return code 20).
How to fix it
Read IEC023I and respond according to its return code.
Verify that the correct volume and DSNAME were specified when return code is 08.
Correct the I/O error in the case of EROPT=SKIP on a multi-volume tape.
If the error recurs and the program is not in error, rerun with DCB=DIAGNS=TRACE and a GTF trace, and contact IBM Support.