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
 

 

Automatic LOCK after REWRITE Statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Automatic LOCK after REWRITE Statement
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


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