View previous topic :: View next topic
|
Author |
Message |
rohit4u
New User
Joined: 06 Oct 2006 Posts: 6
|
|
|
|
Hi,
I want to change the key value in a segment. Suppose PART MASTER is the parent segment and part number is the key and I want to change the first 6 characters of the part number. under that parent there are some child segments also...
So it would be great if some body could tell me how to achieve this?
Thanks in advance.
Regards,
Rohit. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
You cannot "change" a key value. You would need to save all the information from the parent and all child segments. Then you would create new segments. Then you would go back to the original segment and issue delete for the root - all segments beneath that root would be deleted automatically. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Quote: |
want to change the key value in a segment |
Segment Key - CANNOT be CHANGED. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
IMS functions with "pointers". Twin forward - twin backward - twin backward forward. When you are inserting segments, IMS keeps track of where and who you belong with. The main thing - as I have always said - is positioning. IMS knows where you are based on your position in the database - and the internal "pointers". If you try to rewrite a key value - you would be lost - IMS will not allow that. It's a lot like VSAM - VSAM is a grandparent of IMS. |
|
Back to top |
|
|
|