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

Difference between GE and GB return code in GN Call ?


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

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Fri Jul 12, 2019 12:59 pm
Reply with quote

Deleted by moderator. Posted yesterday on Beginner's Forum.

Poha Eater, do not post the same query on multiple forums. You put people off. If, after a week. you have had no reply then, by all means, post on another forum.
Back to top
View user's profile Send private message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Fri Jul 19, 2019 12:38 pm
Reply with quote

Hi,

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.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Jul 19, 2019 2:32 pm
Reply with quote

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:
Code:
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


This is the URL for that page:
https://www.ibm.com/support/knowledgecenter/en/SSEPH2_13.1.0/com.ibm.ims13.doc.msgs/msgs/gb.htm
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Jul 19, 2019 6:02 pm
Reply with quote

Quote:
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
or...
people do not like You icon_lol.gif
Back to top
View user's profile Send private message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Tue Jul 23, 2019 2:34 pm
Reply with quote

Thanks for your replies Nic & Enrico. Have a good day ahead !
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Tue Jul 23, 2019 5:16 pm
Reply with quote

I could explain in a line or two but this link will details you exactly what you asked.
www.ibm.com/support/knowledgecenter/en/SSEPH2_14.1.0/com.ibm.ims14.doc.apr/ims_gnghncall.htm
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Jul 23, 2019 7:49 pm
Reply with quote

Which probably says exactly the same thing as the link I gave. After all, IBM are not likely to suddenly change the meanings of the status codes after 50 years.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Tue Jul 23, 2019 7:51 pm
Reply with quote

TS needed to know the explanation of it based on Scenarios in detail than just by its definition and that's the reason I shared the other link and certainly the definition of the codes won't change else current systems will fall apart icon_smile.gif.
Back to top
View user's profile Send private message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Thu Jul 25, 2019 5:04 pm
Reply with quote

Thanks for your reply Rohit & Nic. It helps !
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top