Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
garv_fundu
Warnings : 1

New User

Joined: 02 Nov 2006
Posts: 22

 Posted: Fri Nov 10, 2006 4:09 pm    Post subject: Regarding GN call Suppose A is the root segment B and C are the child segments of A D is the child seg of B E is the child seg of C If currently we are at position B and we place a Call GN A what will be the result?

guptae

Moderator

Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

 Posted: Fri Nov 10, 2006 10:38 pm    Post subject: Hi there, we will get next segment of A means if we have two occurance of A say for key a1,a2 & we are at the child of a1 which is b1(segment b) then if we issue GN a we will get a2. Hope it is clear
garv_fundu
Warnings : 1

New User

Joined: 02 Nov 2006
Posts: 22

Posted: Sun Nov 12, 2006 11:42 am    Post subject:

 guptae wrote: Hi there, we will get next segment of A means if we have two occurance of A say for key a1,a2 & we are at the child of a1 which is b1(segment b) then if we issue GN a we will get a2. Hope it is clear

and what if there is no other occurance of A... where will the pointer be nw... still at B1 or somewhere else?

Also if we give a GHU call next then what will happen?

guptae

Moderator

Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

 Posted: Sun Nov 12, 2006 9:35 pm    Post subject: Hi there, if we have structure like that a1,a2 r two occurance of A, b1, b2 are child of a1 if r pointer is on b1 if we give GN A it will fetch b2 a1 is occurance of A, b1,is child of a1 if r pointer is on b1 if we give GN A it will give end of database GHU: will get hold the segment & establish the parentage
rahul_kolhe

New User

Joined: 08 Nov 2006
Posts: 15

 Posted: Sun Nov 12, 2006 10:07 pm    Post subject: please explain in detail : a1,a2 r two occurance of A, b1, b2 are child of a1 if r pointer is on b1 if we give GN A it will fetch b2 I tried your first answer and it was right : [we will get next segment of A means if we have two occurance of A say for key a1,a2 & we are at the child of a1 which is b1(segment b) then if we issue GN a we will get a2. ] [/quote]
guptae

Moderator

Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

 Posted: Mon Nov 13, 2006 9:55 am    Post subject: Hi Rahul, What u want to know exactly?
Bitneuker

CICS Moderator

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

 Posted: Mon Nov 13, 2006 8:07 pm    Post subject: Guptae: I think Rahul is confirming your answer For Rahul: A GN call acts dependent on the SSA. If none is supplied it reads and returns the database sequentially in hierarchy: top-down-left-right. If qualified it will still read identically but return only the segments that meet the qualification. Each successfull GN-call establishes position. GHU locks the segment for a subsequent delete or update. GHU also returns the first segment to meet the qualification and normally finds its way via the index. GHN returns and locks the next segment to meet the qualification. Via Google one can find some more basics. This one seems all right.
rahul_kolhe

New User

Joined: 08 Nov 2006
Posts: 15

 Posted: Tue Nov 14, 2006 2:23 am    Post subject: Thank you George, The link is very useful and answer was perfect and what I wanted. Since I was facing issue where my GN call was looping and never returning GE statcode(may be looking for whole DB), Use of GNP solved it but still I was confused. Above answer cleared all doubts. Thank you again. Rahul
garv_fundu
Warnings : 1

New User

Joined: 02 Nov 2006
Posts: 22

 Posted: Tue Nov 14, 2006 2:28 pm    Post subject: hi guptae, reg ur post: a1 is occurance of A, b1,is child of a1 if r pointer is on b1 if we give GN A it will give end of database GHU: will get hold the segment & establish the parentage if after we get end of database, immediately we give a GHU call for the segment A, what will be the result?
Bitneuker

CICS Moderator

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

Posted: Tue Nov 14, 2006 3:35 pm    Post subject:

 garv_fundu wrote: hi guptae, reg ur post: a1 is occurance of A, b1,is child of a1 if r pointer is on b1 if we give GN A it will give end of database GHU: will get hold the segment & establish the parentage if after we get end of database, immediately we give a GHU call for the segment A, what will be the result?

Please have a look at my prior post where this question is explained; or start a new topic please
Bitneuker

CICS Moderator

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

 Posted: Tue Nov 14, 2006 3:45 pm    Post subject: gav_fundu please read my prior post.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm Print call stack in Mainframe C DIPANKAR SAHA ABENDS & Debugging 2 Thu Mar 15, 2018 2:58 pm IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us