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

Taking Control of VSAM files from CICS region.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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: 2358
Location: Israel

PostPosted: Mon Sep 22, 2008 2:49 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Using API Gateway from CICS program CICS 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top