How to solve batch getting file already open error.

All sort of Mainframes Interview Questions.
Raja Babu
Registered Member
Posts: 23
Joined: Mon Nov 17, 2014 3:48 pm

How to solve batch getting file already open error.

Post 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?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

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

Post by Robert Sample »

IDCAMS VERIFY
Raja Babu
Registered Member
Posts: 23
Joined: Mon Nov 17, 2014 3:48 pm

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

Post by Raja Babu »

Thanks Robert. This helps.

Why didn't we can directly close the file in CICS to solve this?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

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

Post 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.  
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”