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
 

 

Taking Control of VSAM files from CICS region.

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

New User


Joined: 19 Sep 2008
Posts: 2
Location: Hyderabad

PostPosted: Mon Sep 22, 2008 11:43 am    Post subject: Taking Control of VSAM files from CICS region.
Reply with quote

Hi,

I want to run my batch program which updates a VSAM file and which was already been used by an online CICS program. The CICS program was developed in such a way that it will look for VSAM file1(assume it as master) during the on hours and it will look for VSAM file2(A shadow copy of VSAM master file) when the master is not available. So when I am trying to update the master file using the batch I should take the control from CICS, otherwise it will not allow me to update and inturn my job will abend. I should take the control of the file from the JCL through which I am updating my VSAM file.

So can some one help me in resolving this?

TIA

Cheers
Vijay
Back to top
View user's profile Send private message

tomehta

New User


Joined: 18 Aug 2008
Posts: 98
Location: India

PostPosted: Mon Sep 22, 2008 12:56 pm    Post subject: Reply to: Taking Control of VSAM files from CICS region.
Reply with quote

Hi
My understanding is you want to take control of a VSAM file which is already 'used' by CICS. By used you mean to say its already open in cics.

Resolution is :
you have to close the file in cics first and then use it in your batch program. This can be done by
1. By CEMT IN FIL( file name ) and then close, disable the file . This is a manual way.
2. By the utility through which you can execute the above transaction (CEMT IN FIL) in a batch job.

Please let me know if I understood issue or not.
Back to top
View user's profile Send private message
vijay_prayag

New User


Joined: 19 Sep 2008
Posts: 2
Location: Hyderabad

PostPosted: Mon Sep 22, 2008 1:48 pm    Post subject: Reply to: Taking Control of VSAM files from CICS region.
Reply with quote

Hi Tomehta,

Thanks for your quick response!! Yeah your perception about the issue was correct.

As I mentioned, I just want to take the control in JCL. So the option2 which you mentioned was more appropriate in my case. So can you please provide me more details as how to use the utilities?Any samples that you have will be of greate help for me.

TIA

Cheers
Vijay
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Sep 22, 2008 2:49 pm    Post subject:
Reply with quote

You can write CICS System Commands (like SET FILE) and invoke them prom batch using EXCI.

O.
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm


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