IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting -904 with Multiple Row Fetch Logic


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sumivel

New User


Joined: 13 Sep 2005
Posts: 18

PostPosted: Thu Jun 14, 2007 3:44 pm
Reply with quote

My cursor fetches 18,22,749 number of rows.
To reduce the run time i declared the
cursor with Rowset Positioning.

i.e FETCH NEXT ROWSET TAX_CSR FOR 100 ROWS

in the above case i am getting -904(resource
not available) after fetching some 291489
rows.

The same cursor without this multiple
row fetch logic is working fine.whereas with rowset positioning i am getting -904.
can anybody tell me the process to solve this error
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 15, 2007 1:54 am
Reply with quote

Hello,

Is the -904 always after the same number of fetched rows?

What is the reason code? What other diagnostic information was presented (look in the jes sysout datasets).

What type of resource failed and what was the name of that resource?

I'd suggest you look into the "DB2 Messages & Codes" linked to from the "Manuals" link at the top of the page.
Back to top
View user's profile Send private message
Santoshdorge

New User


Joined: 27 Jun 2006
Posts: 48
Location: Pune

PostPosted: Fri Jun 15, 2007 9:56 am
Reply with quote

Hi,
One of the reason for -904 is limit on the number of locks aquired.
you can bind the program with isolation option CS(cursor stability)
and execute the same.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top