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'm trying to SUM the models that go with a country but the model list keeps growing. Any ideas?
-******************** DEFINE FILE CAR MDLS/A600= IF MDLS EQ '' THEN MODEL ELSE SUBSTR(500, MDLS, 1, 500, 500, 'A500') || '-' || MODEL; END
TABLE FILE CAR SUM MDLS BY COUNTRY END -*************** need output: ENGLAND V12XKE AUTO-XJ12L AUTO-INTERCEPTOR III-TR7 FRANCE 504 4 DOOR ITALY 2000 4 DOOR BERLINA-2000 GT VELOCE-2000 SPIDER VELOCE-DORA 2 DOOR JAPAN B210 2 DOOR AUTO-COROLLA 4 DOOR DIX AUTO W GERMANY 100 LS 2 DOOR AUTO-2002 2 DOOR-2002 2 DOOR AUTO-3.0 SI 4 DOOR-3.0 SI 4 DOOR AUTO-530I 4 DOOR-530I 4 DOOR AUTOThis message has been edited. Last edited by: <Kathryn Henning>,
8.2.03 AIX Client Windows Tomcat DB2, Terradata, SQL, Oracle
Posts: 56 | Location: Fort Worth, Texas USA | Registered: January 27, 2012
DEFINE FILE CAR MODELS/A600 =
IF COUNTRY EQ LAST COUNTRY THEN SUBSTR(600, MODELS, 1, 550, 550, 'A550') || '-' || MODEL ELSE MODEL;
END
TABLE FILE CAR
SUM
MODELS
BY COUNTRY
END
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
But make sure that your file is sorted by COUNTRY... FOCUS files like CAR behave nicely, but if you have a sequential file or an SQL table, there might be some surprises!
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