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.
Please look at the output below. I use 1 HOLD file to produce it. Can somebody come up with a solution that doesn't need a HOLD file (1 pass on the data)?
TABLE FILE CAR
SUM SALES
OVER RETAIL_COST
OVER DEALER_COST
OVER COMPUTE RATIO/D5.2%=100 * DEALER_COST/RETAIL_COST;
BY COUNTRY
ACROSS SEATS RECOMPUTE
ON TABLE SUMMARIZE
IF COUNTRY EQ E$* OR I$* OR J$*
END
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Other way is FML using the FORMULTIPLE OPTION gives a bit better print layout I think.
TABLE FILE CAR
SUM
SALES OVER
RETAIL_COST OVER
DEALER_COST OVER
COMPUTE D2R_ratio/D12.2 = ( C3 / C2 ) * 100;
ACROSS SEATS RECOMPUTE
FOR
COUNTRY
'ENGLAND' AS 'ENGLAND' LABEL R1 OVER
'ITALY' AS 'ITALY' LABEL R2 OVER
'JAPAN' AS 'JAPAN' LABEL R3 OVER
'ENGLAND' OR 'ITALY' OR 'JAPAN' AS 'Total' LABEL R4
ON TABLE SET PAGE-NUM OFF
ON TABLE SET FORMULTIPLE ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END
It need not be in the ACROSS phrase: ON {acrossfield} SUMMARIZE or RECOMPUTE has the same effect.
I find the semantics inconsistent:
(a) ACROSS ... RECOMPUTE does not inserts content at sort breaks (for the 3 respective values of SEATS); it just appends a single column of marginals on the right. So it's really an "On Table" level feature.
(b) But the corresponding ON TABLE phrase, ON TABLE SUMMARIZE and RECOMPUTE, doesn't generate a right-hand marginal when the request contains an ACROSS, just the bottom marginal.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005