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

Is Multirow fetch available with table joins?


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nitin.chavan

New User


Joined: 10 Oct 2012
Posts: 2
Location: India

PostPosted: Fri Oct 12, 2012 10:53 am
Reply with quote

I'm using a cursor with joins of two tables, and I want to fetch 200 rows at a time. I used rowset positioning for cursor..but getting null values in array at fetch as a output.

Please let me know if we can use rowset positioning along with joins...or please suggest alternative option.

Regards,
Nitin
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Oct 12, 2012 11:54 am
Reply with quote

I am no expert in Multi fetch

If I am correct rowset positioning is for the data and not about the "where clause"
Back to top
View user's profile Send private message
chandan.inst

Active User


Joined: 03 Nov 2005
Posts: 275
Location: Mumbai

PostPosted: Fri Oct 12, 2012 3:54 pm
Reply with quote

Hi,

Yes you can use multi row fetch along with joins.

If you are getting Null values in array then there is issue with how you have coded it.

It will be great if you share the coding details with us

Regards,
Chandan
Back to top
View user's profile Send private message
Nitin.chavan

New User


Joined: 10 Oct 2012
Posts: 2
Location: India

PostPosted: Wed Oct 17, 2012 12:57 pm
Reply with quote

Hi Chandan,

Thanks for your inputs, the multi row fetch with join is working.

I was getting error because Select column sequence in Cursor and fetch column sequence in fetch statement was not in sync.

Thank you again !!
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top