Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
'GP' status with GHNP call....HELP!

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

New User

Joined: 14 Feb 2006
Posts: 1

PostPosted: Tue Feb 14, 2006 9:41 pm    Post subject: 'GP' status with GHNP call....HELP!
Reply with quote

I am having this problem in a Cobol BMP program:
I have an HIDAM db with a root segment and several children segments.
I have an input file with key data to use for all segments needed.
I do a fully qualified GU call for the root segment. I also have the 'P' command code in the SSA for parentage.
The next call I do is a GHNP for the child segment. The IMS call has two SSAs - one is the fully qualified root segment (with 'P' command code), and the other is a fully qualified child segment (no comand codes).
This call works fine.
The next call is a REPL call against the child segment.
The next call is another fully qualified GHNP for the child segment under the same root.

The GU call works fine, the 1st GHNP call works fine. The REPL call works fine. The 2nd GHNP fails with a 'GP' status code.

I thought the 'P' on the qualified root SSA would keep parentage on the root for subsequent GNP calls? Likewise I thought the REPL would not "destroy" parentage?

Can someone tell me what I am doing wrong and why I am losing parentage?

Note: as I have segment key information for both root and child segments (multiple children can exist) from a data file I was thinking that instead of GHNP calls I could do just GHU calls for each child.

Thoughts and any additional assistance are appreciated.

Thank you!
Back to top
View user's profile Send private message

Warnings : 1

Active User

Joined: 02 Dec 2005
Posts: 109

PostPosted: Wed Feb 15, 2006 9:08 am    Post subject: Re: 'GP' status with GHNP call....HELP!
Reply with quote

hi Walleye,

your second GHNP call fails with GP. as for as my meagre knowledge goes, as you complete the REPL call after the first GHNP call, the parentage will be now in that segment or the pointer will be in that segment. so as you try to give a second GHNP call, you don't have parentage on the parent segment for this child. instead you have the parentage only on the previous occurence of this segment.

this is what my idea is. i'm not sure to what extent this is correct. please bear with me.

corrections welcomed...

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 Submit JCL to INTRDR and check the st... srajendran2 COBOL Programming 7 Sat Jun 16, 2018 1:30 am
No new posts Bill Woodger Status? ApexNC DFSORT/ICETOOL 11 Tue Jun 05, 2018 5:17 pm
No new posts using CALL PLIRETC(somevalu) Pedro PL/I & Assembler 1 Wed May 09, 2018 10:25 pm
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Print call stack in Mainframe C DIPANKAR SAHA ABENDS & Debugging 2 Thu Mar 15, 2018 2:58 pm

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