Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
SQLCODE -904 while opening a cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
Author Message
ousep143

New User


Joined: 06 Oct 2007
Posts: 32
Location: India

PostPosted: Thu Jun 05, 2008 4:58 pm    Post subject: SQLCODE -904 while opening a cursor
Reply with quote

I was getting SQLCODE = -904 while opening a cursor,

Please tell me what to do?
Back to top
View user's profile Send private message
References
Moved: Thu Jun 05, 2008 5:02 pm by mcmillan From DB2 to ABENDS & Debugging
Gnanas SNG

Senior Member


Joined: 06 Sep 2007
Posts: 429
Location: India

PostPosted: Thu Jun 05, 2008 5:07 pm    Post subject:
Reply with quote

-904 UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON
reason-code, TYPE OF RESOURCE resource-type, AND RESOURCE NAME
resource-name

Explanation: The SQL statement could not be executed because resource
resource-name of type resource-type was not available at the time for the
reason indicated by reason-code. Refer to Table 3 in Appendix B, "Problem
determination" in item -PROBLEM_DETERMI for an explanation of resource type
codes. Refer to "DB2 codes" in item -DB2_CODES for an explanation of the given
reason code.

If this is issued in connection with Multilevel Security authorization
(resource-type 402), then the Security Server return and reason codes for
the unavailable resource appear as the resource-name. In this case, refer
to the z/OS Security Server RACROUTE Macro Reference.

System Action: The SQL statement cannot be executed. If the SQL statement
being executed was a cursor FETCH, DB2 closes the cursor. Subsequent
attempts to use that cursor without first doing an OPEN for it receive an
SQLCODE -501.

Programmer Response: Verify the identity of the resource that was not
available. To determine why the resource was unavailable, refer to the
specified reason-code.

SQLSTATE: 57011
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3083
Location: italy

PostPosted: Thu Jun 05, 2008 5:08 pm    Post subject: Reply to: SQLCODE -904 while opening a cursor
Reply with quote

-904 is an unavailable resource SQLCODE

You' ll have to post all the messages or look them up Yourself in the manual in order to find out what to do
Back to top
View user's profile Send private message
ousep143

New User


Joined: 06 Oct 2007
Posts: 32
Location: India

PostPosted: Thu Jun 05, 2008 8:33 pm    Post subject: Re: Reply to: SQLCODE -904 while opening a cursor
Reply with quote

Thanx Enrico & Gnanas
Back to top
View user's profile Send private message
balaji.ghanta

New User


Joined: 26 Jun 2008
Posts: 2
Location: Bangalore

PostPosted: Mon Jul 07, 2008 4:02 pm    Post subject:
Reply with quote

-904 is for resource not available. Varify the below

1) Please check whether the table is existing or not.

2) Might be your utilitilib is not be existing. So, in this case check with your corresponding DBA. He will solve your problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1