Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

-905

Resource limit exceededNEGATIVE SQLCODE · CHECKED 2026-11-14
Checked against IBM documentation

The statement was stopped because a resource limit, such as ASUTIME CPU time, was exceeded.

QUICK ANSWER

The statement was stopped because a resource limit, such as ASUTIME CPU time, was exceeded.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The statement used more CPU than the ASUTIME limit allows.
  2. A routine exceeded its ASUTIME threshold.

CHECKED 14 Nov 2026 IBM: Db2 13 - Codes - SQLCODE -905 | Db2 for z/OS 13.0.0

MOST LIKELY

The statement used more CPU than the ASUTIME limit allows.

FIRST CHECK

Find out why the statement or stored procedure ran so long.

TRY IT ▸

Site search

What it means

Db2 terminated the SQL statement because it exceeded a limit taken from a resource limit specification table, a system parameter or SYSIBM.SYSROUTINES.

When a routine exceeds its ASUTIME limit, the transaction is rolled back to the previous commit point and the thread must roll back before more SQL runs.

Typical causes

  • The statement used more CPU than the ASUTIME limit allows.
  • A routine exceeded its ASUTIME threshold.

How to fix it

  1. Find out why the statement or stored procedure ran so long.
  2. Simplify the SQL statement or restructure tables and indexes.
  3. Contact the group that maintains the resource limit specification tables.
  4. For a monitored routine, increase its ASUTIME value in the resource limit table.