Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1529
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us