Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
IMS PROCOPT conflict between Parent and child segment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
kalukakkad

New User


Joined: 10 Mar 2005
Posts: 81

PostPosted: Wed Jul 11, 2007 4:16 pm    Post subject: IMS PROCOPT conflict between Parent and child segment
Reply with quote

I have to create a PSB such that Root segment can be deleted after i have read the Root and all it's dependent segments.

If i give PROCOPT = D on the root and PROCOPT=G on the child, will a 'DLET' of root segment - delete all it's child segments too.

I am not sure how the conflicting PROCOPT will behave.
Please help on this.
Back to top
View user's profile Send private message

Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Jul 11, 2007 6:02 pm    Post subject:
Reply with quote

You will be fine......a DLET command automatically deletes anything beneath that parent. Are you using multiple positioning or will you go back and retrieve the root with a GHU? In other words, you will no longer be positioned on the root AFTER you read the child segments unless you use 2 PCBs.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Jul 11, 2007 6:08 pm    Post subject:
Reply with quote

One more thing - too early in the morning here. You must always issue a HOLD on ANY segment that you plan to update - whether it be REPL or DLET. If you do not issue that HOLD prior IMS will not let you update. So, get your parent segment - you can just issue a get without the hold. Read thru all children, load the parent key qualified into your SSA - retrieve the parent with the HOLD - check the status code - issue the DLET. Say goodbye to that parent and all children.
Back to top
View user's profile Send private message
Suthagar

New User


Joined: 01 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Wed Jul 11, 2007 6:13 pm    Post subject: Re: IMS PROCOPT conflict between Parent and child segment
Reply with quote

Hi kalukakkad,

For the deletion of all child segments the GET HOLD call should be a path call and the DLET call can be given with the SSA.

SSA should be an unqualified (without command codes).

a DLET call using an unqualified SSA will cause the deletion of all its dependents (childs). At the same time above its level cannot be deleted.

Hope this will clarify your query.

Regards,
Suthagar.S
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Jul 11, 2007 6:17 pm    Post subject:
Reply with quote

Suthagar,

You do not need to issue a path call to DLET all of the child segment. You have the parent with a HOLD call - if you just issue the DLET on the parent, all children automatically go bye-bye. They cannot exist in IMS because internally their pointers are gone.
Back to top
View user's profile Send private message
Suthagar

New User


Joined: 01 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Wed Jul 11, 2007 6:32 pm    Post subject: Re: IMS PROCOPT conflict between Parent and child segment
Reply with quote

Hi Sandy,

If you read my reply I have given the idea as common deletion of the segments and its childs not only the Parent.

Thats why I have mentioned the path call HOLD and also I have mentioned above its segments cannot be deleted.
Back to top
View user's profile Send private message
kalukakkad

New User


Joined: 10 Mar 2005
Posts: 81

PostPosted: Wed Jul 11, 2007 6:47 pm    Post subject:
Reply with quote

Thanks Sandy and Suthagar for such a quick reply.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Jul 13, 2007 1:28 am    Post subject: Re: IMS PROCOPT conflict between Parent and child segment
Reply with quote

Suthagar wrote:
Hi Sandy,

If you read my reply I have given the idea as common deletion of the segments and its childs not only the Parent.

Thats why I have mentioned the path call HOLD and also I have mentioned above its segments cannot be deleted.


Like Sandy says this pathcall brings no light to me. Once positioned at a segment using a HOLD-call the next DELETE-call will delete the segment positioned at and all of its dependents and children. Of course you should make sure there's no one else preventing you from this deletion using a special command code.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error on PROCOPT=P option Raghu navaikulam IMS DB/DC 5 Wed Mar 23, 2016 5:55 pm
No new posts Summing up child-values in self-refer... Auryn DB2 1 Sun Feb 14, 2016 6:02 pm
No new posts Deleting and Inserting an IMS Segment... mohammad amir ashraff IMS DB/DC 8 Thu Jun 06, 2013 3:03 pm
No new posts How to return to the parent from the ... Kunal Surpurkar IMS DB/DC 0 Fri May 10, 2013 1:13 pm
No new posts Will ""PROCOPT = A"&qu... VarunJ1991 IMS DB/DC 2 Mon Mar 11, 2013 9:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us