COBOL · DB2 SQLCODE

SQLCODE -904

What does SQLCODE -904 mean in COBOL?

Resource unavailable. DB2 could not access a needed resource, commonly because a database utility (like REORG or LOAD) currently has the object in a restricted state.

SQLCODE -904DB2 for z/OS · Db2 (embedded SQL in COBOL)

Condition

Resource unavailable. DB2 could not access a needed resource, commonly because a database utility (like REORG or LOAD) currently has the object in a restricted state.

Fix

Check the DB2 master log for the specific resource and reason code named in the message, and confirm no utility job is currently holding the object involved.

Pending source verification. Not yet checked against official documentation.

Related db2 sqlcode