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 very surprised to discover that a PCT Prefix Operator does not work on a COMPUTEd field, the value in the PCT field is the same as the computed field.
JOIN CLEAR *
JOIN PCD IN GGSALES TO PCD IN GGPRODS AS J1
-RUN
TABLE FILE GGSALES
SUM
COMPUTE SALES_AMT/D12 = UNITS * UNIT_PRICE;
PCT.SALES_AMT/D20.4 AS 'SALES_PCT'
BY PRODUCT
END
-RUN
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
This makes sense. Obviously other prefix operators such as MIN, MAX, FST and LST would not work on a COMPUTE when SUMming because WF no longer knows the original detail records when it goes back to process the internal matrix.
I would guess that PCT does not work either because COMPUTEs are calcualted on a row by row basis and therefore WF does not know the TOTAL until it gets to the last record in the report. At that point it will not go back and process the records in the internal matrix again.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
JOIN CLEAR * JOIN PCD IN GGSALES TO PCD IN GGPRODS AS J1
-RUN
DEFINE FILE GGSALES
DUMMY/A1='';
END
TABLE FILE GGSALES
SUM
COMPUTE SALES_AMT1/D12 = UNITS * UNIT_PRICE; NOPRINT
BY DUMMY NOPRINT
SUM
COMPUTE SALES_AMT2/D12 = UNITS * UNIT_PRICE;
COMPUTE PCTSA/D7.2=SALES_AMT2/SALES_AMT1;
BY DUMMY
BY PRODUCT
END
-RUN
just a thought..
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006