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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Counting Records
 Login/Join
 
Member
posted
Does anyone have an easy way of counting rows in a report or a report section?
I'd appreciate the help.
Thanks.
 
Posts: 9 | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
Can you give us an example of how you are trying to present this count? In a SUBFOOT? In the FOOTING or HEADING? As a rolling total column? This will help us give you better assistance.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
The report is broken into segments. I'm trying to add a count in the subfooter and footer of the report to count the number of records in each given segment, then a final grand total.
 
Posts: 9 | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
This is one method you can use:

SET STYLEMODE = FIXED
TABLE FILE CAR
COUNT MODEL NOPRINT
BY COUNTRY
PRINT MODEL SEATS
BY COUNTRY
ON COUNTRY RECAP
CARCOUNT/I5 = C1;
ON COUNTRY SUBFOOT
" "
"COUNT BY COUNTRY IS ON TABLE SUMMARIZE AND SUBFOOT
" "
"TOTAL COUNT IS ON TABLE NOTOTAL
END


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
"COUNT BY COUNTRY IS ?CARCOUNT"
ON TABLE SUMMARIZE AND SUBFOOT
" "
"TOTAL COUNT IS ?C1"
ON TABLE NOTOTAL
END

Addendum the system doesn't like the less than spot marker. Replace the '?' with the less than symbol '<'


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Try this:

DEFINE FILE CAR
CARCNT/I4 WITH CAR =1;
END
TABLE FILE CAR
PRINT CAR CARCNT NOPRINT
BY COUNTRY UNDER-LINE
ON COUNTRY SUBFOOT
"TOTAL RECORDS FOr THIS CAR < ST.CARCNT < /1"

ON TABLE SUBFOOT

"TOTAL RECORDS ON REPORT < TOT.CARCNT"


IF COUNTRY EQ ENGLAND OR ITALY
END



COUNTRY CAR
------- ---
ENGLAND JAGUAR
JENSEN
TRIUMPH
TOTAL RECORDS FOR THIS CAR 3

----------------------------
ITALY ALFA ROMEO
MASERATI
TOTAL RECORDS FOR THIS CAR 2

----------------------------
TOTAL RECORDS ON REPORT 5

This message has been edited. Last edited by: ET,


FOCUS 7.6 MVS PDF,HTML,EXCEL
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report This Post
Expert
posted Hide Post
Hi sludge,

Has this issue been resolved? Did other users' suggestions help you?

I ran some search on Focal Point and came across the following old topics which may be of interest as well:

COUNT NO. OF RECORDS

row count

Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Member
posted Hide Post
Thanks for all the suggestions. I will let you know the result when I am finally able to get back to it.
 
Posts: 9 | Registered: December 06, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders