RPG (IBM i / AS/400) · DB2 SQLCODE

SQLCODE -901 - System Error

What does SQLCODE -901 - System Error mean in RPG (IBM i / AS/400)?

DB2 hit an unexpected internal or system-level error executing the statement, which may or may not prevent later statements from succeeding in the same job.

SQLCODE -901 - System ErrorDB2 for i · SQLRPGLE

Condition

DB2 hit an unexpected internal or system-level error executing the statement, which may or may not prevent later statements from succeeding in the same job.

Fix

Capture the full job log and any secondary message text - this is a catch-all code, so look for related system-level errors (storage, journal, PTF) rather than assuming it's purely an SQLRPGLE logic bug.

Related db2 sqlcode