View previous topic :: View next topic
|
Author |
Message |
meenakshi_forum Warnings : 1 Active User
Joined: 27 May 2008 Posts: 121 Location: India
|
|
|
|
Hi,
Suppose there is a cursor which is expected to(this is just an assumption) to fetch 1000 records but after fetching every 2nd record the tracnscations are expected to be commited, then what would happen to the cursor?
Thanks! |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
The best would be "try yourself" and then if you are blank about why this is happening "so" post it here. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
Hint: It makes a difference if you define you cursor with WITH HOLD or not. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
look-up the WITH HOLD clause, in a db2 manual, or try google. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
meenakshi_forum, Hi
Why do you want to fetch a record and commit ?
Are you updating anything ?
Sushanth |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
If you use checkpoint/restart logic your output dataset is part of the LUW. Besides you might want to release any locks held. |
|
Back to top |
|
|
|