Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
what does feedback code=118 mean ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: what does feedback code=118 mean ?
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jun 16, 2009 9:12 pm    Post subject:
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    Post subject: Reply to: what does feedback code=118 mean ?
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 24, 2009 6:39 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 24, 2009 6:47 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 24, 2009 6:58 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 6:59 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 24, 2009 7:02 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Wed Jun 24, 2009 7:19 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 24, 2009 7:26 pm    Post subject:
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    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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us