GNP call first with out using GN?

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Anand Sharma
New Member
Posts: 7
Joined: Tue Aug 19, 2014 3:08 pm

GNP call first with out using GN?

Post by Anand Sharma »

Hi,

Can we issue GNP call first with out using GN/GU call before?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: GNP call first with out using GN?

Post by nicc »

How can you issue a get next within parent if you do not have a parent? Think about it.
Regards
Nic
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: GNP call first with out using GN?

Post by Anuj Dhawan »

As Nic has indicated - no, you can't do that. If you try to do that - you'll get status code "GP" - No parentage established.

Hope this helps.
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.
Anand Sharma
New Member
Posts: 7
Joined: Tue Aug 19, 2014 3:08 pm

Re: GNP call first with out using GN?

Post by Anand Sharma »

Got it, thanks guys!
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: GNP call first with out using GN?

Post by Anuj Dhawan »

You're welcome! :)
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.
Post Reply

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

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”