IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Contention problem with VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Wed Mar 05, 2008 10:37 pm
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: 2146
Location: At my coffee table

PostPosted: Wed Mar 05, 2008 10:43 pm
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
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: 2146
Location: At my coffee table

PostPosted: Thu Mar 06, 2008 12:23 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top