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've got a list of values from my hold file, and I need to only display the bottom 90% of the records based on the sorting of one of the fields.
So I'm: 1. Calculating the number of records in the hold file, and assigning that to a variable.
2. Calculating 90% of the number that was assigned to the variable.
3. Sorting the output file on the same sort field that was used to calculate the number of records, and setting the recordlimit of the output file equal to the number resulting from step #2.
This gives me the correct number of records, but not the correct records based on the sort field.
Is this even possible?
My code:
TABLE FILE BASELINE
PRINT
CAGE_CODE AS 'CAGE_CODE'
CYCLE_DAYS AS 'CYCLE_DAYS'
WHERE CYCLE_DAYS NE 0
ON TABLE HOLD AS 'TOTAL01'
END
-RUN
-SET &TOTAL01= &RECORDS;
-SET &TOTAL01PCT= &RECORDS * .90;
TABLE FILE TOTAL01
PRINT
TOTAL01.CAGE_CODE AS 'CAGE_CODE'
TOTAL01.CYCLE_DAYS AS 'CYCLE_DAYS'
BY LOWEST CYCLE_DAYS NOPRINT
WHERE RECORDLIMIT EQ &TOTAL01PCT
ON TABLE PCHOLD FORMAT EXL2K
END
-EXIT
This message has been edited. Last edited by: ColdWhiteMilk,
When I read the subject of your thread, I thought that you wanted the bottom 90% of the values of a field. Then after reading, I understood that you wanted the bottom 90% of records.
Just in case you are also interested in values, here is a possible solution:
-* File CWM01.fex
TABLE FILE GGORDER
SUM QUANTITY
PRINT QUANTITY
COMPUTE CUMQUANT/I8=CUMQUANT + C2;
COMPUTE PCTCUMQUANT/D7.2=CUMQUANT * 100 / C1;
BY QUANTITY
WHERE TOTAL PCTCUMQUANT LE 90;
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006