Doubt on Get Next call



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

Doubt on Get Next call

Postby vz3013 » Thu Nov 17, 2011 11:58 am

Hi Friends,
I have a doubt on GN call...

I have a PCB with 3 SENSEG's ... Segment A,B and C.
Here B and C are siblings under A.

I have code a prgm lik this ..

Call PLITDLI using(Count,
GN,
PCB_Mask,
I/O Area,
Unqualified SSA for Segment B)

Let's say Segment B has 3 occurences(Segment B1,B2,B3)
What will happen if I execute this call 4th time? Where the control will be pointed?

Can any one please clarify me this..

Thanks in Advance...
vz3013
 
Posts: 1
Joined: Wed Nov 16, 2011 10:19 am
Has thanked: 0 time
Been thanked: 0 time

Re: Doubt on Get Next call

 

Re: Doubt on Get Next call

Postby NicC » Fri Nov 18, 2011 1:22 am

deleted by me - would have to check the manual but the TS can do that hisself.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2943
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 134 times

Re: Doubt on Get Next call

Postby Ed Goodman » Fri Nov 18, 2011 11:09 pm

If I read it right, there is no qualification that would keep the program under the same "A" segment. So IMS will try to do what you told it: go get the next "B" segment. If it has to go to another "A" to get it, that's what it will do.

If you want to stay under that same "A", you have a few options.
) Add an SSA with the "A" key
) Use the GNP call instead of the GN call
) Use the U or V command codes (be careful with this)
Ed Goodman
 
Posts: 342
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times


Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post