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.
I was just wondering if there is a function that can check characters for duplicates. For example: I have a file with 150 records of ssn's, first name, lastname, address, dog, cat, anut, uncle, salary... and so forth. tons of data.
What I want to do is run through the file and make sure there is only 1 ssn (other wise we would have 2 records exatly the same).
Is there a looping function that can go through each row of a file and check that? Can this be done in a define without the use of a hold file?
Why not count the SSN's by SSN and print a report where the count is greater than one?Here's an example using the CAR file. I am using the SEATS field. First run the report with the WHERE clause commented, then run it uncommented to see the difference.
TABLE FILE CAR
SUM
CNT.SEATS
BY SEATS
PRINT>COUNTRY
CAR BY SEATS
BY MODEL
*WHERE TOTAL CNT.SEATS GT 5
END
This message has been edited. Last edited by: <Mabel>,
DEFINES are calculated for each individual row. If the first DEFINE didn't give you errors the value would always be 1.
Do you want to list all of the SSN's on the report?
If not, then do what Francis advised. The WHERE TOTAL says do the test after you add up the counts. This will list only the SSN's that appear more than once.
SUM CNT.SSN BY SSN WHERE TOTAL CNT.SSN GT 1
If you want to see all the SSN's then you don't need to do the WHERE. USe conditional styling to make the ones with dups stand out.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003
Those suggestions are very helpful. I was trying to think of a way to do it in a define, but I am now actually using a whole report to do a count, so I think what was suggested will work. Thanks so much!!