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

Possible to do multiple fetches with opening a Cursor once?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raghavendra_p_sarvade

New User


Joined: 17 Oct 2006
Posts: 32

PostPosted: Fri Apr 10, 2009 5:06 pm
Reply with quote

Hello,

Is it possible to do multiple fetches on the same cursor without close / opening it again with a different key?

Thanks,
Raghav
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 10, 2009 5:58 pm
Reply with quote

you are not serious, are you?

explain what you mean by 'a different key'.

1. do you mean a different WHERE clause?
or
2. different values in Host Variables used in the WHERE clause?
or
3. ?


1. answer is obvious.
2. no, you must close and reopen the cursor.
3. I don't know.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Apr 10, 2009 5:59 pm
Reply with quote

an addendum:

different values in Host Variables used in the WHERE clause?

you must repopulate your Host variables before re-opening the cursor.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top