The reason code, also in SQLERRD(3), shows whether it was a deadlock (00C90088) or a timeout (00C9008E). If the statement was a cursor FETCH, Db2 closes the cursor.
Typical causes
The application was the victim in a deadlock (reason 00C90088).
The application timed out waiting for a resource (reason 00C9008E).
How to fix it
Collect the SYSLOG for the period of the failure and search it for related messages.
Commit or roll back to the previous COMMIT, then generally terminate the application.
See message DSNT376I for possible ways to avoid future deadlocks or timeouts.