Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
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
References
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

Active User


Joined: 10 Jan 2006
Posts: 71
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

IMS Moderator


Joined: 07 Nov 2005
Posts: 1143
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: 116

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: 10

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1