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
 

 

A unique key field accepting duplicate key

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

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Tue Jul 13, 2010 12:02 pm    Post subject: A unique key field accepting duplicate key
Reply with quote

Hi all,

I've something interesting to solve now.

I've an IMS DB with one single segment and one single field defined in it, which acts as the key for the segment and defined as unique key.

Just to give you a brief background, the database of interest (is in test region)was recently refreshed from the production databases. And once after the refresh is done the database is allowing the insertion of duplicate keys.

I'll detail you the scenario.

* If I try to repeat any record using IMS FM, it is allowing the duplicated record without any 'II'.
* But if I again try to insert this duplicate (i.e. 3 same records to be added), it is throwing an 'II'
* Similarly I added a new record to the DB. And when I tried to browse through the DB, interestingly this record is not shown up.
* But when I tried to reinsert this record, 'II' is being thrown.
* The same is the case when trying with a job to insert records.

It is quite strange to my knowledge. Is there any chance that the key constraints are not properly registered in the DB when the refrsh happened? The DBD definition of the DB is too simple such that no chance of anything going wrong.

Also I've checked the Refresh jobset up, DBRC components and all.
I could not find anything wrong.

Can anyone of you please help me out in this?

Thanks in advance,
Reni
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Tue Jul 13, 2010 7:33 pm    Post subject:
Reply with quote

Hello,

Suggest you work with your dba to determine what has been broken (or at least bent).
Back to top
View user's profile Send private message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Tue Jul 13, 2010 8:42 pm    Post subject:
Reply with quote

Thanks Dick Sch.
But I requested for the solution, expecting some DBAs from the forum could help on this, as our DBA team is also finding this problem as tough.

Anyone from the team can help me on this?

Thanks,
Reni.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Tue Jul 13, 2010 8:56 pm    Post subject:
Reply with quote

Hello,

Yes, we know you wanted a solution. When your request went for 8 hours with no response, i suggested following the course that usually gets answers quicker anyway.

If you had already presented this to your dbas and got no answer, it would have been good to mentoin this. . .

From what you have posted so far, it sounds like there is an out-of-sync - i.e. there may be 2 sets of data in play.

If all else fails, contact IBM support.
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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