IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Inserting duplicate segment into IMS DB


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ambili S

Active User


Joined: 06 Sep 2007
Posts: 112
Location: India

PostPosted: Thu Feb 03, 2011 11:44 am
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Thu Feb 03, 2011 7:59 pm
Reply with quote

Not under the same parent. It would get a status code II indicating that it is a duplicate.
Back to top
View user's profile Send private message
lonewolf133

New User


Joined: 24 Nov 2007
Posts: 3
Location: Bangalore

PostPosted: Tue Feb 08, 2011 3:52 pm
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Mon Feb 21, 2011 12:13 am
Reply with quote

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
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Mon Feb 21, 2011 12:23 am
Reply with quote

Here's something additional. If I can locate this stuff, so can you.

my.safaribooksonline.com/book/databases/ims/0131856715/overview-of-the-ims-hierarchical-database-model/ch07lev1sec1#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTAxMzE4NTY3MTUvMjI=
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 21, 2011 12:29 am
Reply with quote

Hi Sandy,

Quote:
If I can locate this stuff, so can you.

Yup, but you are willing to look for it. . . icon_wink.gif

Many aren't. . .

d
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


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

PostPosted: Mon Feb 21, 2011 12:57 am
Reply with quote

That's how I learned IMS all of those years ago. I was willing to WORK at it. icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Duplicate data in PUT CONTAINER using... CICS 4
No new posts Inserting variable length into output... JCL & VSAM 2
Search our Forums:

Back to Top