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

what does feedback code=118 mean ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Tue Jun 16, 2009 8:37 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 16, 2009 9:12 pm
Reply with quote

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
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Jun 24, 2009 6:24 pm
Reply with quote

Thanks Robert, reason for the abend was duplicate records in the vsam file.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 24, 2009 6:39 pm
Reply with quote

Glad to hear you got it resolved ... the manual did say records could be missing or duplicated!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 24, 2009 6:47 pm
Reply with quote

How would you know that they were missing if they were not there icon_eek.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 24, 2009 6:58 pm
Reply with quote

Holes in the file? icon_smile.gif

Maybe we should raise a PMR to get that one explained!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 6:59 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 24, 2009 7:02 pm
Reply with quote

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 icon_rolleyes.gif -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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 7:19 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 24, 2009 7:26 pm
Reply with quote

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
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts submitting feedback for manuals All Other Mainframe Topics 3
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top