Assembly / HLASM · Abend code

System Completion Code S002

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.

System Completion Code S002z/OS · HLASM

Condition

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.

Fix

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.

Related abend code