View previous topic :: View next topic
|
Author |
Message |
vijay_prayag
New User
Joined: 19 Sep 2008 Posts: 2 Location: Hyderabad
|
|
|
|
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 |
|
|
tomehta
New User
Joined: 18 Aug 2008 Posts: 98 Location: India
|
|
|
|
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 |
|
|
vijay_prayag
New User
Joined: 19 Sep 2008 Posts: 2 Location: Hyderabad
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can write CICS System Commands (like SET FILE) and invoke them prom batch using EXCI.
O. |
|
Back to top |
|
|
|