Page 1 of 1

Difference between GE and GB return code in GN Call ?

PostPosted: Thu Jul 11, 2019 5:21 pm
by Poha Eater
Hello Everyone,

This is my first post on this forum. 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.


Thanks in advance !