I have a query related to a Websphere application accessing VSAM files and batch jobs accessing the same VSAM files. I have a websphere application which runs some PL1 program in background when transaction is fired from the frontend. These programs allocate VSAM files and access them dynamically. At the same time, there are few batch jobs which in turn calls the same program as the websphere application and tries to allocate the same VSAM files dynamically and access it.
Now, the websphere application accesses the VSAM file in update mode whereas the batch jobs accesses them in read mode only. There is some contention caused in these two applications which causes the websphere application go down.
My question is,
Would this problem be because of dynamic access of same VSAM file by two different applications at the same time? If so, how that can be rectified. I can't change the JCL or program as they are very generic and used for many other applications.