Joined: 27 Jun 2005 Posts: 12 Location: East Hartford
Please see if this helps:
-923 CONNECTION NOT ESTABLISHED: DB2 condition REASON reason-code, TYPE
resource-type, NAME resource-name
Explanation: The connection to DB2 failed for the reason indicated by
condition, which can be any of the following:
o DB2 not up
o DB2 not operational
o DB2 shutdown in progress
o DB2 restricted access mode
o Allocation error
o DB2 - CICS attachment not up
o DB2 - CICS ENTRY disabled
o The object is dependent on facilities of a release of DB2 that is
newer than the release that you are currently running (fall back).
o DB2 restarted in LIGHT(YES) mode
Possible causes of an allocation error are:
o The application plan does not exist.
o The application plan is inoperative. An explicit REBIND or BIND is
o The application plan is invalid. Underlying resources have changed.
o A required database, table space, table, or index is unavailable.
o Data set allocation failed for a required data set.
o There is insufficient virtual storage.
o The application is trying to execute the plan from a system
(environment) that was restricted when the plan was bound or rebound.
Check the SYSPLSYSTEM table to determine from which systems (for
example, IMS or CICS) the plan can be executed.
If the condition is "CICS attachment not up", then NAME indicates the DB2
subsystem that is not available. The reason code indicates the reason the
attachment is not available.
If the condition is "CICS entry disabled", then NAME indicates the entry
that is disabled.
System Action: The statement cannot be executed. The connection to DB2 is
Programmer Response: If the connection failed because either DB2 or a
required database, table space, table, or index was unavailable, wait
until it is available before invoking the application again.
If allocation failed for an application plan, REBIND the plan to determine
the problem. Error messages are produced explaining why the plan could not
For other types of allocation errors, installation action might be
required to correct the problem.
For CICS attachment failures, resolve the primary cause as noted by the
reason code. Then restart the attachment.
Problem Determination: The reason-code, resource-type, and resource-name
might not be available. If they are not available, nothing appears. If
they are available, refer to Section 4. DB2 Codes for an explanation of
the reason-code, resource-type, and resource-name.
Refer to message DSNT500I under DSNT... Messages for an explanation of
resource type and resource name. Refer to Table 3 in Appendix B, "Problem
determination" in item PROBLEM_DETERMIN for an explanation of resource type
codes. Any attempts to issue SQL statements after receiving SQLCODE -923
will cause unpredictable results.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello and welcome to the fourm,
It is better to reply to currently active topics rather than those that have been inactive for years. . .
And when you do post a reply, you need to post something informative - telling people that something is "available in mainframe itself" is basically just clutter. . . And is not really correct. The information is in the documentation and is not part of the "mainframe itself".