Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

GNP call with qualified SSA for Parent level

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

New User


Joined: 25 May 2006
Posts: 8
Location: india

PostPosted: Mon Jun 08, 2009 1:14 pm    Post subject: GNP call with qualified SSA for Parent level
Reply with quote

Hi,

I have a query related to qualified GNP call. If GNP call with qualified SSA for parent level is issued where search operator is '=' and keyvalue is different than the keyvalue of parent segment, then what will be the IMS response.

I read the manual for GNP call with SSA. It says about SSA values for grand parents, for child segments between the Parent level and target child segment but what about the Parent level. Does SSA for the Parent level considered when executing GNP call.

Thanks,
Priya
Back to top
View user's profile Send private message

aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Mon Jun 08, 2009 1:36 pm    Post subject: Reply to: GNP call with qualified SSA for Parent level
Reply with quote

Hi,

GNP call is for get next within parent. Hence if you write a GNP call with qualified SSA. Parent will remain same and program will read next segment within parent with given key value.
Back to top
View user's profile Send private message
priyanshupathak

New User


Joined: 25 May 2006
Posts: 8
Location: india

PostPosted: Mon Jun 08, 2009 1:40 pm    Post subject:
Reply with quote

But the SSA value specified here is for the parent and not for the child segment.
Back to top
View user's profile Send private message
aishwarya_20

New User


Joined: 19 Nov 2008
Posts: 57
Location: pune

PostPosted: Mon Jun 08, 2009 1:47 pm    Post subject:
Reply with quote

If this is the case then the return code will be 'GE' i.e. segment not found because Parent is not same what you specified in the qualified SSA.

But in case you have used 'P' command code and then using GNP call with different key, in that case parent will change to what specified in qualified SSA.

Please find below rules :-

You can set parentage in two ways:

1. By issuing a successful GU or GN call. When you issue a successful GU or GN call, IMS sets parentage at the lowest-level segment returned by the call. Issuing another GU or GN call (but against a different PCB) does not affect the parentage that you set using the first PCB in the previous call. An unsuccessful GU or GN call cancels parentage.

2. By using the P command code with a GU, GN, or GNP call, you can set parentage at any level.
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 Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us