View previous topic :: View next topic |
Author |
Message |
gore Beginner

Joined: 10 Dec 2002 Posts: 46 Topics: 20 Location: Providence, RI
|
Posted: Mon Nov 10, 2003 12:44 pm Post subject: DLi call for accessing a child segment |
|
|
I am only a few hours old to IMS DB. I have to access a child segment. one level below the root segment.
It is something like:
subscriber root(key is ID)
|
|
member segment(dependent no field=000)
(There are other segment type below the root segment as well)
I have to access an occurence of member segment for a particular ID where dependent no = 000
I am coding the call statement as
call 'cbltdli' using ims-gnp, pcb01, fully qulaified ssa for root segment, qualified ssa for child segment.
I am getting AC the PCB status return code.
Can any one tell why is it so and how to correct it.
Any pointers would be highly appreciated.
This need to be resolved fast hence I do not have much time for R&D or going through the manuals. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Nov 10, 2003 1:21 pm Post subject: |
|
|
Gore,
A couple of things need to be done before issuing a Get Next within a Parent(GNP) call. You first need to establish the parentage and then you can issue the GNP call.
Code: |
CALL 'CBLTDLI' USING IMS-GU
PCB01
FULLY QUALIFIED ROOT SEGMENT
|
The above call will establish the parentage.Now you can issue a GNP call since you established the parentage.
Code: |
CALL 'CBLTDLI' USING IMS-GNP
PCB01
FULLY QUALIFIED ROOT SEGMENT
QUALIFIED/UNQUALIFIED CHILD SSA
|
Check this link for a detailed explanation of Status code Ac
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSD20E3/D.2.3?SHELF=&DT=20020709102724&CASE=
Hope this Helps...
cheers
kolusu |
|
Back to top |
|
 |
gore Beginner

Joined: 10 Dec 2002 Posts: 46 Topics: 20 Location: Providence, RI
|
Posted: Mon Nov 10, 2003 11:52 pm Post subject: |
|
|
Thanks a lot Kolusu!! It worked. _________________ Gore |
|
Back to top |
|
 |
|
|