Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [closed]Add Comma's to a Total Field Listed in Heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[closed]Add Comma's to a Total Field Listed in Heading
 Login/Join
 
Gold member
posted
Hi All,

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, 2012Report This Post
Platinum Member
posted Hide Post
DEFINE FILE CAR
SALES1/D12.2=SALES;
END

TABLE FILE CAR
SUM
SALES/D12.2
BY
MODEL
HEADING
"THESE ARE THE SALE TOTALS END


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Expert
posted Hide Post
Please post your code between the code tags.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Hi TomS,

Check, it works for you
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, 2013Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Gold member
posted Hide Post
Doing the define first proved to be the solution.

Thanks all!
Tom

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, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [closed]Add Comma's to a Total Field Listed in Heading

Copyright © 1996-2020 Information Builders