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

Cursor/Locking question


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

New User


Joined: 08 Feb 2008
Posts: 4
Location: India

PostPosted: Fri Jul 31, 2009 10:48 pm
Reply with quote

Hi,

This is something i am wondering...

I have a cursor , which in declare section i have given to fetch only 50 rows at a time , then the locking which is used is CS, then if i am updating any one of the row then the rest 49 rows are free to be updated by others yes or no ..please let me know.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Aug 01, 2009 12:59 am
Reply with quote

Please start a new thread for a new question.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Aug 01, 2009 6:55 am
Reply with quote

Hello and welcome to the forum,

Quote:
if i am updating any one of the row then the rest 49 rows are free to be updated by others yes or no
If i understand the question - No, as there may be other rows to update and if they were freed, the update would fail.
Back to top
View user's profile Send private message
somdatta28

New User


Joined: 08 Feb 2008
Posts: 4
Location: India

PostPosted: Mon Aug 03, 2009 10:32 pm
Reply with quote

Thanks for the reply... I tested it out and it works fine.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 03, 2009 11:41 pm
Reply with quote

Good to hear it is working - thanks for letting us know icon_smile.gif

d
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 Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top