View previous topic :: View next topic
|
Author |
Message |
leo_sangha
New User
Joined: 11 Aug 2005 Posts: 85 Location: England
|
|
|
|
I'm getting Feedback-Code=118 and Return-Code=08 while opening a VSAM file. The job that is trying to access this file is abending with S322 i.e. timeout abend.
Could someone explain what is wrong ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
From the Macro instructions for Data Sets manual:
Quote: |
118(X'76')
The data set was not properly closed. The data set
high-used RBA has been successfully verified. Records may
be missing or duplicated.
A previous VSAM program may have abnormally ended.
You should verify that all of the expected records are in
the data set.
The catalog will be updated when the data set has been
successfully opened for output and then successfully
closed. For additional information on recovery processing,
see z/OS DFSMS Using Data Sets.
|
|
|
Back to top |
|
|
leo_sangha
New User
Joined: 11 Aug 2005 Posts: 85 Location: England
|
|
|
|
Thanks Robert, reason for the abend was duplicate records in the vsam file. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear you got it resolved ... the manual did say records could be missing or duplicated! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
How would you know that they were missing if they were not there |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Holes in the file?
Maybe we should raise a PMR to get that one explained! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
indexed read would fail
- index is built first then the record added to vsam ds.
if the index was built but the system ? failed before the inclusion of the data record
you have a missing record. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Interseting suggestion Dick. I may even take a look through some reading materials to follow up on that.
I'm under the impression, maybe wrong - has been known once before -but thought the index was inserted after the data.
Never the less a great explanation which I will hopefully get time to follow up on. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Expat,
you are right, I am wrong:
Page 15 VSAM Demystified:
If there are no free CIs in the CA and a record is to be inserted, a CA split occurs.
Half of the CIs are sent to the first available CA at end of the data component.
This movement creates free CIs in the original CA, then the record to be inserted
causes a CI split.
You should keep in mind that splits are not bad. Splits are how VSAM deals with
a lack of space, and this generates free space that will help prevent additional
splits.
As a result of the split, the physical sequence of records and CIs is no longer the
same as the logical sequence. A new index entry is inserted in the sequence set
for the new CI, and the existing index entry is updated. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Thanks Dick.
Maybe the OP might care to run an EXAMINE on the cluster to see if any more little gems crop up. |
|
Back to top |
|
|
|