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.
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.
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.