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     New feature? Column-Total on print command?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
New feature? Column-Total on print command?
 Login/Join
 
Guru
posted
Hi all,

noticed this today; when doing a print command you can total a column by typing column-total after it...

TABLE FILE CAR
PRINT RCOST COLUMN-TOTAL
END

pretty neat eh?

i reckon over half of you may know this but judging by my colleagues suprise over this discovery i thought i'd share as i think it a nicer way of handling column totals.

any comments or findings?

sorry if this is a repost.


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Virtuoso
posted Hide Post
Yeah, neat!

Of course, it is internally translated to:
TABLE FILE CAR
PRINT RCOST
ON TABLE COLUMN-TOTAL
END

Another nice thing is that you can add a 's' to every field in your request.
It is reputed to enhance the readability of the request.
Something like:
TABLE FILE CAR
PRINT SEATS DCOSTS RCOSTS
BY COUNTRYS
END


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
This has been around a very long time. It is the same as saying ON TABLE COLUMN-TOTAL. You only need to put COLUMN-TOTAL once on the PRINT/SUM statement and it will create a column total for ALL numeric fields on the report.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
You can also specify fieldnames after the column-total if you only want certain column to be totalled instad of all of them - handy when one of you columns may be PHONE_NUMBER.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Guru
posted Hide Post
quote:
ON TABLE COLUMN-TOTAL


both ways work well- depends on how you work i guess,


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report 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     New feature? Column-Total on print command?

Copyright © 1996-2020 Information Builders