View previous topic :: View next topic
|
Author |
Message |
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
Hi
Can a duplicate segment be inserted in an IMS db. Suppose the root segment in R. The child segments of R are C1 and C2.
Child segments of C1 are D11 and D12. Is it possible to insert another child D13 which would be a duplicate of D12 ? |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Not under the same parent. It would get a status code II indicating that it is a duplicate. |
|
Back to top |
|
|
lonewolf133
New User
Joined: 24 Nov 2007 Posts: 3 Location: Bangalore
|
|
|
|
Hi
That would depend on how the key/field is defined. Decode the DBD,
if you find
FIELD NAME=(FLDNAME,SEQ,U)
The U would mean that the key/field is unique and you cannot insert a duplicate segment. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
IMS databases are arranged in en.wikipedia.org/wiki/Hierarchy as opposed to relational in DB2.
May I suggest that you study the concepts? Imagine that - wikipedia teaches IMS! |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Sandy,
Quote: |
If I can locate this stuff, so can you. |
Yup, but you are willing to look for it. . .
Many aren't. . .
d |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
That's how I learned IMS all of those years ago. I was willing to WORK at it. |
|
Back to top |
|
|
|