Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we delete a root segment

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

New User


Joined: 11 Aug 2005
Posts: 45
Location: India

PostPosted: Thu Aug 11, 2005 3:34 pm    Post subject: Can we delete a root segment
Reply with quote

Hi friends .........

Can we delete a root segment without deleting the child segments in an IMS DB.
Back to top
View user's profile Send private message

banu

New User


Joined: 09 Aug 2005
Posts: 8
Location: Chennai

PostPosted: Thu Aug 11, 2005 4:43 pm    Post subject:
Reply with quote

HI,

Yes, you can delete the root segment without deleting the child segments.
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Wed Jan 11, 2006 7:56 pm    Post subject:
Reply with quote

If you delete the route segment occurance, all the subordinates will get deleted.

sreejith.K.K
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: Wed Jan 11, 2006 7:58 pm    Post subject:
Reply with quote

Maybe, just maybe banu tried to say that you don't need to delete the dependent segments before deleting the parent/root. At least, I hope he did icon_wink.gif
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Thu Jan 12, 2006 3:48 pm    Post subject:
Reply with quote

banu wrote:
HI,

Yes, you can delete the root segment without deleting the child segments.



hai Banupriya,

i think if we delete a segment at any level all the dependent segments also get deleted. in our case, if we delete the root all the dependents get deleted. this is equivalent to deleting the entire database record altogether.


corrections welcomed,

gowtham
Back to top
View user's profile Send private message
amitchaudhary
Warnings : 1

New User


Joined: 13 May 2005
Posts: 8

PostPosted: Thu Jan 26, 2006 6:36 pm    Post subject: Re: Can we delete a root segment
Reply with quote

Hi all,
If we delete any segment at any leve ( including root), all the dependent segments will get deleted, you dont have to delete the childs before deleting the parent segment. IMS take cares of that thing.

In case you want to change the root, you have to actually copy all the child segment by reading them one by one, insert them to the segment with new key and delete the old segment with old key.

thanks
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us