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: 1590
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 REXX table content on panel will be r... CLIST & REXX 6
No new posts create table with more than 32k recor... DB2 1
This topic is locked: you cannot edit posts or make replies. COBOL-Common routine that contains al... COBOL Programming 4
No new posts Create table from List CLIST & REXX 8
No new posts Map VSAM Dataset to a Table/Tablespace DB2 5
Search our Forums:

Back to Top