Assembly / HLASM · Abend code

Abend S0CA

What does Abend S0CA mean in Assembly / HLASM?

A packed-decimal arithmetic operation (such as AP, SP, or ZAP) produced a result with more digits than the destination field can hold.

Abend S0CAz/OS · HLASM

Condition

A packed-decimal arithmetic operation (such as AP, SP, or ZAP) produced a result with more digits than the destination field can hold.

Fix

Check the destination field's declared length against the largest result the calculation can produce, particularly after a change to an input field's size that the destination was never resized to match.

Related abend code