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.
For example, I have a data base that may have duplicates.
Record Key Tag # Data --------- ----- -------- 1 A xyz 2 A 123 3 B abc 4 C abc 5 C 789 6 D 555 7 C 999
I want to print out a report that shows only duplicates in the Tag #. I know there's a command for looking at the next or previous record, but I can't remember it or its syntax. In the above example, I would like a report that looks like this:
Record Key Tag # Data --------- ----- -------- 1 A xyz 2 A 123 4 C abc 5 C 789 7 C 999
Any suggestions will be greatly appreciated.
Thanks, carlThis message has been edited. Last edited by: Kerry,
Carl
FOCUS 7.1.6 on Windows XP Output: Excel, HTML, PDF
EX -LINES 8 EDAPUT MASTER,TESTDATA,CV,FILE
FILENAME=TESTDATA, SUFFIX=FIX,$
SEGNAME=TEST_DATA, $
FIELD=Key ,ALIAS= ,I9 ,A1,$
FIELD=Fill1, ALIAS= ,A1, A1, $
FIELD=Tag ,ALIAS= ,A1 ,A1,$
FIELD=Fill1, ALIAS= ,A1, A1, $
FIELD=Data,ALIAS= ,A3 ,A3,$
EX -LINES 8 EDAPUT FOCTEMP,TESTDATA,CV,FILE
1 A xyz
2 A 123
3 B abc
4 C abc
5 C 789
6 D 555
7 C 999
-RUN
FILEDEF TESTDATA DISK testdata.ftm (LRECL 7
DEFINE FILE TESTDATA
CntTag/I9 = 1 ;
END
TABLE FILE TESTDATA
SUM CntTag NOPRINT
BY Tag NOPRINT
PRINT Key
Tag
Data
BY Tag NOPRINT
BY Key NOPRINT
WHERE TOTAL CntTag GT 1
END
Although I think this would work, I think there is an easier solution. I know, because I've used it, and can't remember the command. (it must be an age thing). I'll try your solution, but I still hope someone will come up with a simplet solution.
Carl
FOCUS 7.1.6 on Windows XP Output: Excel, HTML, PDF
thanks for the solution - it does exactly what I want. What I did was create the Duplicates list, did a SUM on it, then did a match file against all the records so I could pick up the first record in a set of dups.
thanks
Carl
FOCUS 7.1.6 on Windows XP Output: Excel, HTML, PDF