Assembly / HLASM · Abend code
What does System Completion Code S002 mean in Assembly / HLASM?
Error while the control program processes a sequential dataset via BSAM or QSAM, or while creating a direct-organization dataset — the accompanying message IEC036I carries a return code in register 15 that identifies the specific cause, which can include (but isn't limited to) a record too large for the DCB's BLKSIZE/LRECL, exceeding the roughly 32760-byte QSAM record maximum, or an extent problem for the access method in use.
Error while the control program processes a sequential dataset via BSAM or QSAM, or while creating a direct-organization dataset — the accompanying message IEC036I carries a return code in register 15 that identifies the specific cause, which can include (but isn't limited to) a record too large for the DCB's BLKSIZE/LRECL, exceeding the roughly 32760-byte QSAM record maximum, or an extent problem for the access method in use.
Read the return code in the IEC036I message text first to confirm the actual cause rather than assuming a record-length mismatch; if it is a length mismatch, compare the program's record length against the dataset's actual LRECL/BLKSIZE with LISTCAT or an ISPF dataset list and correct whichever is wrong, reallocating the output dataset if BLKSIZE genuinely needs to increase.