View previous topic :: View next topic
|
Author |
Message |
priyanshupathak
New User
Joined: 25 May 2006 Posts: 8 Location: india
|
|
|
|
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 |
|
|
aishwarya_20
New User
Joined: 19 Nov 2008 Posts: 57 Location: pune
|
|
|
|
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 |
|
|
priyanshupathak
New User
Joined: 25 May 2006 Posts: 8 Location: india
|
|
|
|
But the SSA value specified here is for the parent and not for the child segment. |
|
Back to top |
|
|
aishwarya_20
New User
Joined: 19 Nov 2008 Posts: 57 Location: pune
|
|
|
|
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 |
|
|
|