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.
Do a multi-verb request then hold all the data then report off of it. The sum by user is then available as a field in the hold file and can be put in the heading.
SET ASNAMES=ON
TABLE FILE ...
SUM ETAEXP AS TOT_ETAEXP
BY ETUSER
PRINT ....
BY ETUSER
ON TABLE HOLD FORMAT ALPHA
END
TABLE FILE HOLD
....
END
TABLE FILE CAR
SUM SALES NOPRINT
BY COUNTRY
PRINT SALES
BY COUNTRY PAGE-BREAK
HEADING
"TOTAL SALES FOR <COUNTRY|: <SALES"
ON TABLE SET STYLE *
TYPE=HEADING, STYLE=BOLD, $
TYPE=HEADING, LINE=1, COLOR=NAVY, $
TYPE=HEADING, LINE=1, ITEM=2, COLOR=RED, $
TYPE=HEADING, LINE=1, ITEM=4, COLOR=GREEN, $
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
That means your field is not set wide enough to accomodate the total value. Since you do not have controlover the format when it is displayed in the heading (focus just takes the format of the field and that's it), you would have to create a define field that is large enough to hold the total, equate it to sales, and use that in the subsequent report.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
TABLE FILE CAR
SUM
COMPUTE TSALES/D10 = SALES; NOPRINT
PRINT SALES
BY COUNTRY PAGE-BREAK
HEADING
"TOTAL SALES FOR COUNTRY: <TSALES"
ON TABLE SET STYLE *
TYPE=HEADING, STYLE=BOLD, $
TYPE=HEADING, LINE=1, COLOR=NAVY, $
TYPE=HEADING, LINE=1, ITEM=2, COLOR=RED, $
END
or
DEFINE FILE CAR
SALESD/D10 = SALES;
END
TABLE FILE CAR
PRINT
SALES
BY COUNTRY PAGE-BREAK
HEADING
"TOTAL SALES FOR COUNTRY: <TOT.SALES <TOT.SALESD"
ON TABLE SET STYLE *
TYPE=HEADING, STYLE=BOLD, $
TYPE=HEADING, LINE=1, COLOR=NAVY, $
TYPE=HEADING, LINE=1, ITEM=2, COLOR=RED, $
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