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

Facing U0850 abend in my IMS code


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Verma,Raman

New User


Joined: 13 Oct 2006
Posts: 15

PostPosted: Wed Mar 28, 2007 8:28 pm
Reply with quote

Hi,

I have a COBOL code which uses IMS Db calls to fetch some data. The calls abend the program with a abend code U0850 for some of the IMS segment key values. The key values seem to be alright to me but i am not sure if this is IMS DBD related issue.
Strangely, the same read call works fine for some of the other key values.

Please advise what is U0850 and what I can do to rectify this.

Thanks,
Raman
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Mar 29, 2007 3:44 pm
Reply with quote

Looks like a DBD error. See this
Back to top
View user's profile Send private message
anand_smail

New User


Joined: 05 Jun 2005
Posts: 13

PostPosted: Fri Jul 20, 2007 12:35 pm
Reply with quote

George,

I also getting the same error.
Can you please let me know the how can I rectify it.

Thanks,
Anand.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Jul 20, 2007 2:28 pm
Reply with quote

Quote:
Programmer response:
Analyze the DBDs you use. Ensure that the DBD you used to create the database and the DBD you used to update the database were the same.



We will need the DBDs you used before we can advise further.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Jul 20, 2007 6:55 pm
Reply with quote

Hi Raman,

Whenever you issue an IMS call, you must immediately check the PCB area for a valid return call. For instance, if you are issuing any kind of get unique call, you must check for spaces. If you do not have spaces, then your logic should be what to do next. If it happens to be a qualified path call and you get a GE, then you need to look at the keyfeedback area and the segment level returned - it will tell you the key value that you are searching and the last segment level successfully returned. The most important thing to remember in IMS - is POSITION - where in the heck am I? You will always be positioned at your last successful call.

If you do not check your return status call after EACH call, IMS gets very upset - it gets lost. I suggest you look at your code.
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 -> IMS DB/DC

 


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 ISAM and abend S03B JCL & VSAM 10
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