Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Is Multirow fetch available with table joins?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
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    Post subject: Is Multirow fetch available with table joins?
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

Moderator


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

PostPosted: Fri Oct 12, 2012 11:54 am    Post subject:
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: 269
Location: Mumbai

PostPosted: Fri Oct 12, 2012 3:54 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us