Page 1 of 1

How to solve batch getting file already open error.

Posted: Tue Mar 12, 2024 6:12 pm
by Raja Babu
Hi,

Batch job program opened a VSAM file did some processing and abend. Now after solving abend restarting the batch getting file already open error. How do we solve this?

Re: How to solve batch getting file already open error.

Posted: Wed Mar 13, 2024 12:44 am
by Robert Sample
IDCAMS VERIFY

Re: How to solve batch getting file already open error.

Posted: Tue Mar 19, 2024 11:29 am
by Raja Babu
Thanks Robert. This helps.

Why didn't we can directly close the file in CICS to solve this?

Re: How to solve batch getting file already open error.

Posted: Tue Mar 19, 2024 6:42 pm
by Robert Sample
If I recall correctly, and I may not, CICS does an implicit VERIFY when opening a VSAM file that needs the VERIFY.