IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

GNP call with qualified SSA for Parent level


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top