Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us