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

Reading the records from the VSAM file in CICS program


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

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Tue Mar 31, 2009 5:04 pm
Reply with quote

Hi All,

I am reading the records from the VSAM file in CICS program with update option.

First read record will be locked because of update option used. When second record read will the lock on the first record will be removed or not?

Regards
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 31, 2009 9:23 pm
Reply with quote

If you do not update the record, release the lock by issuing an UNLOCK. Any other behavior will, sooner or later, cause program abends, anguish, wailing, gnashing of teeth, and so forth. Attempting to lock a second record in a file without unlocking the first can result in anything from a non-zero response code to a completely frozen CICS region that requires bringing the region down and back up to fix.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top