MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DLi call for accessing a child segment

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
gore
Beginner


Joined: 10 Dec 2002
Posts: 46
Topics: 20
Location: Providence, RI

PostPosted: Mon Nov 10, 2003 12:44 pm    Post subject: DLi call for accessing a child segment Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Nov 10, 2003 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gore
Beginner


Joined: 10 Dec 2002
Posts: 46
Topics: 20
Location: Providence, RI

PostPosted: Mon Nov 10, 2003 11:52 pm    Post subject: Reply with quote

Thanks a lot Kolusu!! It worked.
_________________
Gore
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group