RPG (IBM i / AS/400) · DB2 SQLCODE
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.
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.
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.