View previous topic :: View next topic
|
Author |
Message |
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Hi,
I need to access an online file which does not open normally through file aid. I get an error message "file is in use" .
Please help |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your post leaves questions:
"access" -- read? write? read AND write?
"online file" -- was the file not closed and disabled in CICS before you attempted to access it? if not, why not? You are just BEGGING for file corruption if you expect to access the file in both batch and CICS while updates are under way.
what are the file share options?
what is the business reason for what you are doing?
what, precisely, are you doing? |
|
Back to top |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
I want to read this file, while this is enabled and being used by a CICS region |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Robert must be disappointed on such a response - he asked at least three questions starting with 'what" and none is answerd!
Well, are you talking about production or is it something to do with your test-LPAR? |
|
Back to top |
|
|
ashok_uddaraju
New User
Joined: 21 Feb 2007 Posts: 72 Location: US
|
|
|
|
Anuj,This is a production region |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
ashok_uddaraju wrote: |
I want to read this file, while this is enabled and being used by a CICS region |
We had a vague idea of what you wanted to do, and you were asked specific questions in order to help you.
Think about it, if you choose to ignore the requests for information, you are not going to get many, if any, useful replies. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Would like to know the answers of
Robert Sample wrote: |
You are just BEGGING for file corruption if you expect to access the file in both batch and CICS while updates are under way.
what are the file share options?
what is the business reason for what you are doing? |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What you want to do can be done -- carefully -- with the appropriate share options set and using enqueue and dequeue against the file. This is not a recommended process since the file can easily be corrupted and in the worst case bring down the CICS region.
If you really have to do this, work closely with your site support group to set up the file correctly, write the batch program correctly, and change the CICS programs to use the queuing mechanism. |
|
Back to top |
|
|
|