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.
(Ignore the dashes, the spaces where getting deleted so I needed to put something there to keep everything spaced correctly)
I only have access to InfoAssist no code, so it must be done entirely in InfoAssist, Any Ideas? Thanks.This message has been edited. Last edited by: Cimmerian,
WebFocus 8.2, IA+, Windows 10, HTML
Posts: 56 | Location: UT | Registered: December 01, 2015
Thank you for the reply! Could you elaborate on how to make a counter field, I see it in other places in the forum but it uses the word WITH in the define and InfoAssist is not having that.
WebFocus 8.2, IA+, Windows 10, HTML
Posts: 56 | Location: UT | Registered: December 01, 2015
Cimmerian, A simplistic way is to use the LIST verb, here is an example(notice the 2nd SORT):
TABLE FILE GGSALES LIST DOLLARS BUDUNITS BUDDOLLARS BY CATEGORY BY HIGHEST DOLLARS NOPRINT ON TABLE HOLD END -RUN ?FF HOLD -RUN TABLE FILE HOLD PRINT * BY CATEGORY NOPRINT BY HIGHEST DOLLARS NOPRINT WHERE LIST LE 100; END -EXIT
The other way is to set a counter and reset on the SORT column:
TABLE FILE GGSALES PRINT DOLLARS BUDUNITS BUDDOLLARS COMPUTE CNTR/I4 = IF CATEGORY EQ LAST CATEGORY THEN CNTR + 1 ELSE 1; BY CATEGORY BY HIGHEST DOLLARS NOPRINT ON TABLE HOLD END -RUN ?FF HOLD -RUN TABLE FILE HOLD PRINT * BY CATEGORY NOPRINT BY HIGHEST DOLLARS NOPRINT WHERE CNTR LE 100; END -EXIT
Thank you for all the replies! I appreciate all the help, I found George Patton's solution to be the most simple (I was overthinking this) and worked like a charm! Thanks again everybody, I will mark this as solved
WebFocus 8.2, IA+, Windows 10, HTML
Posts: 56 | Location: UT | Registered: December 01, 2015