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

Automatic LOCK after REWRITE Statement


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

New User


Joined: 10 Jun 2004
Posts: 12
Location: Bangalore,India

PostPosted: Tue Jun 22, 2004 2:42 pm
Reply with quote

hi to all

after executing READ/UPDATE command automically exclusive lock will be set up. and after executing REWRITE command that lock will be automatically released..so what is the need of UNLOCK command..?
Back to top
View user's profile Send private message
gkchakri
Currently Banned

New User


Joined: 07 Jun 2004
Posts: 9
Location: Bangalore

PostPosted: Tue Jun 22, 2004 6:00 pm
Reply with quote

Hai PCR,

Your ques is good, By READ/UPDATE command we are going to read a particular record and Update or Modify it. If we are REWRITING the record it implicitly locks the record. so, we need to explicitly UNLOCK it to make access to others.

BY READ/UPDATE if we are simply reading with out REWRITE command, i think there is no need of Explicitly UNLOCKING the file.

I feel, i had solved your problem to some extent....................

If any faults please let me know.,

by,
gkchakri.
Back to top
View user's profile Send private message
VIKAS GAIKWAD

New User


Joined: 30 Nov 2006
Posts: 33
Location: MUMBAI

PostPosted: Thu Dec 28, 2006 7:56 pm
Reply with quote

Hi ,


Main use of UNLOCK command is .

Suppose u r using READ/UPDATE for Rewriting but some times u r not Rewriting (if condition fails or becomes true) then in such cases it is explictly requires that u use UNLOCK command.


That meance u r using READ/UPDATE but not REwriting.
In this case u have to use UNLOCK command.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Lock Escalation DB2 3
No new posts rewrite same SAY line CLIST & REXX 8
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
Search our Forums:

Back to Top