Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us