It has been a week but i still have not got any reply on Beginner's forum for this query. So posting it here now. Please help me in clear the confusion.
I have just started to learn IMS DB and having confusion between GE and GB return code by GN call. As per my understanding, GE status code comes when the segment is not found and GB comes when End of the database happens.
In another words, Suppose if i am doing any GN call with qualified SSA and the value greater than the value given in Qualified SSA is present in the database then GE will come and if the SSA is not found and also there is no greater value present in the Database than the value given in the Qualifies SSA then it will give the GB return code. Please confirm if my understanding is correct. If not, then can anyone please clear the confusion with a small example.
Joined: 10 May 2007 Posts: 2188 Location: Hampshire, UK
Did you Google 'IMS STATUS CODES'? If you did, did you look at the link 'IMS V13 - IMS component codes - About DL/I status codes - IBM'? If not, why not. Starting from there, going up one level and then clicking on 'DL/I status codes exlained' and then clicking on 'GB', amongst other information is this:
A GB status code can be returned for:
An unqualified GN call
A qualified GN call without a maximum key (if no data is returned to the I/O area)
In contrast, a GE status code, instead of a GB status code, can be returned for:
A GU call
A qualified GN call without a maximum key (if data is returned to the I/O area)
A qualified GN call with a maximum key
It has been a week but i still have not got any reply on Beginner's forum for this query.
replying to forum questions is on voluntary base, on our own time, free of charge
there is no commitment to reply
there should not be any expectation for an answer
there are many reasons for not getting an answer...
the question has been asked many times,
nobody is interested in the question
the answer is more quickly available reading the manuals
nobody knows a good answer
people do not like You