Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between GE and GB return code in GN Call ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 71
Location: India

PostPosted: Fri Jul 12, 2019 12:59 pm    Post subject: Difference between GE and GB return code in GN Call ?
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: 71
Location: India

PostPosted: Fri Jul 19, 2019 12:38 pm    Post subject:
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: 2218
Location: Hampshire, UK

PostPosted: Fri Jul 19, 2019 2:32 pm    Post subject: Reply to: Difference between GE and GB return code in GN Call ?
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

Senior Member


Joined: 14 Mar 2007
Posts: 10617
Location: italy

PostPosted: Fri Jul 19, 2019 6:02 pm    Post subject: Reply to: Difference between GE and GB return code in GN Call ?
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: 71
Location: India

PostPosted: Tue Jul 23, 2019 2:34 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 2243
Location: NY,USA

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

I could explain in a line or two but this link will details you exactly what you asked.
https://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: 2218
Location: Hampshire, UK

PostPosted: Tue Jul 23, 2019 7:49 pm    Post subject: Reply to: Difference between GE and GB return code in GN Call ?
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

Senior Member


Joined: 21 Sep 2010
Posts: 2243
Location: NY,USA

PostPosted: Tue Jul 23, 2019 7:51 pm    Post subject:
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: 71
Location: India

PostPosted: Thu Jul 25, 2019 5:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts proc step return code to override in ... Aaryaa JCL & VSAM 3 Tue Aug 20, 2019 4:32 pm
No new posts Difference between CICS region bounce... polymathtarun CICS 3 Sun Aug 04, 2019 10:51 pm
No new posts S0C4 Reason Code 10 cz016m COBOL Programming 1 Thu May 02, 2019 7:13 am
No new posts Call DB2 user defined function from C... Ziko13 DB2 5 Thu Mar 14, 2019 4:46 pm
No new posts How to resolve sqlcode of CALL ATTACH... maxsubrat DB2 3 Fri Feb 22, 2019 11:54 am

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