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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


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