Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Duplicate Keys
 Login/Join
 
Member
posted
I have duplicate data in a FOCUS database.
I get the following error when attemnpting to access the data:

> fscan file f09733
(FOC680) THE ROOT SEGMENT OF THE DATABASE CONTAINS DUPLICATE KEY VALUES
>

Does anyone know of a way to eliminate the duplicates?
 
Posts: 10 | Registered: May 11, 2005Report This Post
Expert
posted Hide Post
Try looking into the REBUILD REORG utility. I haven't used it in a while, but it might help.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
I don't think the reorg/rebuild eliminates duplicate keys.
 
Posts: 10 | Registered: May 11, 2005Report This Post
Virtuoso
posted Hide Post
- To identify the duplicated key values:

TABLE FILE yours
COUNT ENTRIES BY rootkey1 [BY rootkey2 ...]
IF TOTAL COUNT GT 1
END

- You'll have to list the records with the duplicated keys, and decide what to do with them. If the file has multiple segment, you'll have to decide how to merge the several subtrees (parents plus their descendents) for each duplicated key.

- To delete selected instances: If there is a non-key field in the segment that can serve to identify the expendable ones, you can match on key and non-key fields:

MODIFY FILE yours
FREEFORM rootkey nonkey
MATCH rootkey nonkey
ON NOMATCH REJECT
ON MATCH DEKETE
DATA
rootkeyvalue, nonkeyvalue, $
rootkeyvalue, nonkeyvalue, $
END


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders