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 am doing the following Table File Request and need to limit the number of records to the first 5 records each time the clno changes (each unique clno). Thanks.
TABLE FILE HOLDFILE SUM PAYMENTS BY CLNO PAGE-BREAK REPAGE NOPRINT BY DESCRIPTION END
Windows Operating System WF Developer Studio 8009This message has been edited. Last edited by: Michele Brooks,
Lowest 5 will only give me the lowest 5 for the first clno only. Thank you for your suggestion. I figured out the following solution. This solution will start the list count with 1 every time the clno changes. This allows me to capture the first 5 records for each unique clno.
TABLE FILE HOLD1
LIST *
BY CLNO PAGE-BREAK REPAGE
ON TABLE HOLD AS HOLD2 FORMAT ALPHA
END
DEFINE FILE HOLD2
RECORD_COUNT/I5 = LIST;
END
TABLE FILE HOLD2
SUM
BY CLNO PAGE-BREAK REPAGE NOPRINT
WHERE RECORD_COUNT LE 5
END
Michelle, because there is a BY statement before the BY LOWEST you should get 5 rows for every CLNO.
This seems to work:
SET BYDISPLAY=ON
TABLE FILE GGPRODS
SUM
SIZE
BY PACKAGE_TYPE
BY LOWEST 3 PRODUCT_DESCRIPTION
END
Package Product Size
------- -------------- ----
Case Biscotti 24
Case Coffee Grinder 12
Case Coffee Pot 8
Pounds French Roast 12
Pounds Hazelnut 16
Pounds Kona 12
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