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: 1534
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 unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


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