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

JCL for accessing CICS file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Thu Mar 04, 2010 8:27 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Mar 04, 2010 8:46 pm
Reply with quote

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
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Thu Mar 04, 2010 9:08 pm
Reply with quote

I want to read this file, while this is enabled and being used by a CICS region
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 04, 2010 9:17 pm
Reply with quote

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
View user's profile Send private message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Thu Mar 04, 2010 9:20 pm
Reply with quote

Anuj,This is a production region
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 04, 2010 9:22 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 04, 2010 9:22 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Mar 04, 2010 9:59 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
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
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top