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 Print call stack in Mainframe C DIPANKAR SAHA ABENDS & Debugging 2 Thu Mar 15, 2018 2:58 pm
No new posts OLDS frozen in BACKOUT status when On... lind sh IMS DB/DC 3 Tue Feb 13, 2018 7:12 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm

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