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
 

 

File Lock in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
findmadhav

New User


Joined: 02 May 2006
Posts: 7

PostPosted: Thu Jul 06, 2006 2:56 pm    Post subject: File Lock in CICS
Reply with quote

Hi,
I am dealing with an application which consists of several CICS programs. Now each of these programs writes, reads and rewrites files.

Now at a point in the program chain, one of the programs keeps a file locked and the next program is not able to write into that file.

I have used EXEC CICS UNLOCK FILE and also SYNCPOINTS in my programs (for read-update and rewrite). But this condition still persists.

Is there a way to solve this problem. Also, is it possible to know which particular operation in which program is locking this file??? Please help me with this...
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Jul 06, 2006 4:04 pm    Post subject:
Reply with quote

I assume you are talking about a VSAM files.

Check the STRINGS value for that file. You can do it using:
"CECI IN FILE(file_name)"

The you can set STRINGS to a higher number using CECI, DFHCSDUP or any other resource update method.

O.
Back to top
View user's profile Send private message
neoconvoy

New User


Joined: 22 Jul 2006
Posts: 9

PostPosted: Sat Aug 26, 2006 12:23 pm    Post subject:
Reply with quote

We recently also encountered this problem. We are working in a CICSPLEX environment, and one of our files had been locked by a certain task/job/user which we were not able to locate.

The problem started like this :
- Some online transaction initiated which was updating an online file. This transaction could be under Intertest. I am not too sure though.
- Tried to close the file in the Application Owning Regions (AORs) using CEMT S CLOSE, but managed to close all except one, which gave the status PENDING REQUEST.
- When the another transaction was started that need to update the file, it abended with AFCV.
- We tried to issue an UNLOCK, but the above situations persisted.

Questions:
1. Is there any way to find out who had the lock on the file ? So far, we can only managed to detect the AORs using the file.
2. Is there a way to force the CLOSE ?

Thanks !
Back to top
View user's profile Send private message
findmadhav

New User


Joined: 02 May 2006
Posts: 7

PostPosted: Thu Aug 31, 2006 10:20 am    Post subject:
Reply with quote

We tried a workaround for the above problem. Instead of directly doing operations on the files, we introduced online access routines, wherein we used syncpoints and unlock statements. It seemed to work.
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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