Assembly / HLASM · Abend code

System Completion Code S804

What does System Completion Code S804 mean in Assembly / HLASM?

The amount of storage a job step requested exceeded what was actually available to the address space — a general storage-shortfall abend distinct from S80A/S878 mainly in which storage-management layer rejected the request. It shows up frequently in sort and other utility steps that need large in-memory work areas.

System Completion Code S804z/OS · HLASM

Condition

The amount of storage a job step requested exceeded what was actually available to the address space — a general storage-shortfall abend distinct from S80A/S878 mainly in which storage-management layer rejected the request. It shows up frequently in sort and other utility steps that need large in-memory work areas.

Fix

Increase REGION on the JOB or EXEC statement, and for DFSORT-style steps raise MAINSIZE, RESALL, or RESINV so the utility has enough working storage without starving other allocations.

Related abend code