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
 

 

JCL for accessing CICS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ashok_uddaraju

New User


Joined: 21 Feb 2007
Posts: 72
Location: bangalore

PostPosted: Thu Mar 04, 2010 8:27 pm    Post subject: JCL for accessing CICS file
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 04, 2010 8:46 pm    Post subject:
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: bangalore

PostPosted: Thu Mar 04, 2010 9:08 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Mar 04, 2010 9:17 pm    Post subject:
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: bangalore

PostPosted: Thu Mar 04, 2010 9:20 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 04, 2010 9:22 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Mar 04, 2010 9:22 pm    Post subject:
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Mar 04, 2010 9:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Accessing first bit of PD value rajatbagga DFSORT/ICETOOL 11 Wed May 03, 2017 6:03 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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