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 want to have a report heading show the report totals. The issue I'm having is with having it show with commas. For example...
TABLE FILE CAR SUM SALES BY MODEL HEADING "THESE ARE THE SALE TOTALS END
This provides me with the total sales # just fine however there are no commas. I also tried making SALES a /D12...still the report has the commas but the heading does not.
I've looked all over and cannot find a solution to this on the forums.
Thanks for any help!This message has been edited. Last edited by: TomS.,
WebFOCUS 8.0.07 and 8.2.01M UNIX, WINDOWS, ORACLE PDF, CSV, Excel, TXT, XML, HTML
Posts: 65 | Location: Maryland | Registered: January 17, 2012
FILEDEF XYZ DISK BASEAPP/XYZ.TXT (LRECL 12
-RUN
TABLE FILE CAR
SUM
SALES NOPRINT
COMPUTE SALESD/D6 = SALES; NOPRINT
COMPUTE SALESB/A9 = FTOA(SALES, '(D6)', 'A9');
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS XYZ
END
-RUN
-READ XYZ &TEST.A9.
-TYPE &TEST
TABLE FILE CAR
SUM SALES
BY MODEL
HEADING
"Total Sales &TEST.EVAL"
END
-Rifaz
WebFOCUS 7.7.x and 8.x
Posts: 406 | Location: India | Registered: June 13, 2013
A field in a HEADING, SUBHEADING or whatever, will use the original format. Using a format change on a verb object affects only that verb object. Using a DEFINE is one approach, a COMPUTE is another. However from your code snippet you will NOT get total sales, only the first value for SALES. You can try:
TABLE FILE CAR
SUM COMPUTE C_SALES/I9C =SALES; NOPRINT
SUM
SALES
BY
MODEL
HEADING
"THESE ARE THE SALE TOTALS <C_SALES"
END
or
DEFINE FILE CAR
D_SALES/I10C=SALES;
END
TABLE FILE CAR
SUM
SALES/I10C
BY
MODEL
HEADING
"THESE ARE THE SALE TOTALS <TOT.D_SALES"
END
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007