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

Multi Fetch Cursor - Count


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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon May 23, 2011 3:06 pm
Reply with quote

Hi
How to figure out the no of rows fetched through Multi-Fetch Cursor?

In regular Cursor, I increment a counter after every successful fetch for calculating the no of rows fetched.

If I set the Row-set to 50, how to calculate the no of rows fetched.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 3:22 pm
Reply with quote

SQLERRD3 contains the number of rows retrieved on the multiple-row FETCH statement
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon May 23, 2011 3:31 pm
Reply with quote

Is it with regard to every fetch?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 3:33 pm
Reply with quote

Every fetch means??

SQLERRD3 is a SQLCA variable which contains the number of rows fetched.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 3:34 pm
Reply with quote

Refer - ibmmainframes.com/about5155.html for more information.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Mon May 23, 2011 3:47 pm
Reply with quote

@gylbharat, Thanks for you reference and response.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 23, 2011 4:29 pm
Reply with quote

icon_smile.gif
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 To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top