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.
The only way to accomplice what you want, is to make your own column totals and rowtotals. You'll need to make your own across-total column and your own total line. So basicly you will have to create 3 files that you'll have to combine in 1 file with a match command. I'll have done this already with an ACROSS but never in combination with a BY. I'll post my example in the morning. To get this total line and total colomn in place create a dummy ACROSS field and a dummy BY field that both will contain a large number like 999 or 9999999999999 etc, to make sure it will be the last ACROSS-column and the last BY-field-value (last line) in your report. Since this colomn and row is only containing the sum of all the other data you'll need to give your individual records also a dummy ACROSS value and a dummy BY value ( from 1 to n)......
I know this not very clear but I'll hope this get you started. It will be more clear when I post my example.
Here's an idea: do the ACROSS and HOLD the data. Then, in the report, you can specify the columns and specify which ones need subtotals.
SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
-RUN
TABLE FILE CAR
SUM SALES/D12 AS 'S' ACROSS COUNTRY
BY BODYTYPE
ON TABLE HOLD AS H001
END
-RUN
?FF H001
-RUN
TABLE FILE H001
SUM
SENGLAND
SFRANCE
SITALY
SJAPAN
'SW GERMANY'
BY BODYTYPE
ON BODYTYPE SUBTOTAL SENGLAND SITALY AS 'TOTAL'
HEADING
"WEBFOCUS REPORT"
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLESHEET *
BORDER=1, BORDER-COLOR=SILVER,
FONT='ARIAL', SIZE=8, $
TYPE=SUBTOTAL, COLOR=BLUE, $
END
If the field values in the across change regularly, you could do a TABLE FILE, HOLD and -READ to create DM variables...
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
Thanks for the smart solutions, the last one (Francis) works very good, in this case I have some static by and across values so I can build the report as shown.
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
I thought suppressing a ROW-TOTAL was a key question for Frank.
I can do it myself by first getting all the details, then get the sum of all the details and then merge these two result by using the MATCH command. But since your solution is less complicated then mine I wondered if you could suppress the ROW-TOTAL (= ACROSS-TOTAL) in your example?