How to solve batch getting file already open error.

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

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: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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
India

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: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

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