View previous topic :: View next topic
|
Author |
Message |
siva25
New User
Joined: 22 Jun 2007 Posts: 4 Location: bangalore
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
siva25
New User
Joined: 22 Jun 2007 Posts: 4 Location: bangalore
|
|
|
|
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 |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
|
|