Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Contention problem with VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
siva25

New User


Joined: 22 Jun 2007
Posts: 4
Location: bangalore

PostPosted: Wed Mar 05, 2008 10:28 pm    Post subject: Contention problem with VSAM file
Reply with quote

Dear All

One of my job abended due to contention problem with VSAM file.

Let me clear,

There are 2 different situations where the job abended due to contention problem.


1. In a particular step, they are deleting & defining the VSAM file again say "ABC.SAMPLE.VSAM"

The job abended because “Delete and define of VSAM file "ABC.SAMPLE.VSAM" failed as the file was in use by someone.
It’s a daily job runs everyday through CA7.

2. The job abended due to Open VSAM error.

The following message I got from JESMSGLG

a. IEC161I 052(012,jobname)-084,abended job name, step name of abended job.

b. the following message also I got from SPOOL but not from JESMSGLG

VSAM open error on “ABC.SAMPLE.VSAM” and vsam status is 080000A8 hexadecimal. Error opening message database file. Status = 134217896.

In both cases the job works fine if we restart from the abended step.

Could any please tell me how do we resolve this issue by efficient way of coding.

Thanks for your help in advance.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Mar 05, 2008 10:37 pm    Post subject: Re: Contention problem with VSAM file
Reply with quote

siva25 wrote:
1. In a particular step, they are deleting & defining the VSAM file again say "ABC.SAMPLE.VSAM"

The job abended because “Delete and define of VSAM file "ABC.SAMPLE.VSAM" failed as the file was in use by someone.
It’s a daily job runs everyday through CA7.
I'd guess that CA7 should just restart the delete/define....Assuming that it is a short batch job holding the enqueue. If it is CICS, then somebody should close/disable the file to allow the delete/define.....
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Mar 05, 2008 10:43 pm    Post subject: Re: Contention problem with VSAM file
Reply with quote

siva25 wrote:
2. The job abended due to Open VSAM error.
The following message I got from JESMSGLG
a. IEC161I 052(012,jobname)-084,abended job name, step name of abended job.
b. the following message also I got from SPOOL but not from JESMSGLG
VSAM open error on “ABC.SAMPLE.VSAM” and vsam status is 080000A8 hexadecimal. Error opening message database file. Status = 134217896.
a: have you looked up the IEC161I message?
b: That sounds ike an application message, look into the application and find out why it displayed the error.....
Back to top
View user's profile Send private message
siva25

New User


Joined: 22 Jun 2007
Posts: 4
Location: bangalore

PostPosted: Wed Mar 05, 2008 10:47 pm    Post subject:
Reply with quote

Dear "CICS Guy"
My job have only COBOL and VSAM code. CICS is not involved. If we restart from the abended step,it will work fine. But let me know if we can solve the problem before it would abend. Thats my requirement.


Regards
Siva
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Mar 06, 2008 12:23 am    Post subject:
Reply with quote

siva25 wrote:
My job have only COBOL and VSAM code. CICS is not involved. If we restart from the abended step,it will work fine. But let me know if we can solve the problem before it would abend.
Why don't you catch the open error (file status) and pause a few seconds with some sort of wait and then retry the open (keeping count of the number of times you do this)?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us