Hi,
Many a times I've seen my Team lead making use of the phrases like 'setting up' the parentage in IMS database. What exactly does it mean? And why do we need to set-up the parentage, what happens if it is not set-up, can someone please guide me.
'Parentage' in IMS Database.
-
- New Member
- Posts: 5
- Joined: Wed Aug 20, 2014 11:31 am
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: 'Parentage' in IMS Database.
The search for the requested segment is limited to the dependents of the lowest-level segment most recently accessed by a GU or GN call. Parentage determines the end of the search and is in effect only following a successful GU or GN call.
You can set parentage in two ways:
You can set parentage in two ways:
- 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.
- By using the P command code with a GU, GN, or GNP call, you can set parentage at any level.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Anuj Dhawan
- Founder
- Posts: 2803
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: 'Parentage' in IMS Database.
This should be of your interest: https://www.ibm.com/support/knowledgece ... npcall.htm
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: 'Parentage' in IMS Database.
IMS, unlike DB2 and most recent databases, is hierarchical and not relational. A hierarchical database has a root node and every data group attaches at a lower level (possibly several levels down depending upon the definition of the database). The parent is the data group at the next higher level (hence the ultimate parent is the root node).
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute