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     [SOLVED]Total amout of records displayed on report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Total amout of records displayed on report
 Login/Join
 
Gold member
posted
Can anyone tell me why the last line
"Record Counts: <SUM.RECORDS_CNT" 
keeps printing out 1, when i know that i have around 500 records? Im trying to get a total count of all the records in the report.


 DEFINE FILE DB2ADMIN_TANVRTC
FULL_NAME/A60=LAST_NM|| (', '|FIRST_NM );
RECORDS_CNT/I5=IF FULL_NAME NE '' THEN 1 ELSE 0;
END
TABLE FILE DB2ADMIN_TANVRTC
-*"Total Records:<COUNT.FULL_NAME"
PRINT
     FULL_NAME AS 'Name'
     SSN
     TAX_YR AS 'Tax Year'
     DATE_RECEIVED/MDYY AS 'Received Date'
     AMT_GRANTED/D12.2CM AS 'Credits Pending'
     SCHOOL_DIST_CD AS 'School District'
     COUNTY_CD AS 'County Code'
BY &SORT NOPRINT
HEADING
"Credit"
"Report"
" "
"<1> <+0>Date: &DATEMDYY"
ON TABLE SUBFOOT
"Record Counts: <SUM.RECORDS_CNT" 



Solved with TOT.RECORDS_CNT, this gave me all of the records on the report.

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


WF 7.1.7- Windows XP
 
Posts: 63 | Registered: August 28, 2007Report This Post
Virtuoso
posted Hide Post
What you need it TOT.RECORDS_CNT rather than SUM.RECORDS_CNT. It has to do with a combination of how and when prefix operators work, the use of sort fields, and contents of the internal matrix. I believe in your case it was only refering back to the last calculated value of RECORDS_CNT. I'm sorry I can't explain any better than that. My understand comes from using this to no end and knowing what works and what doesn't. Better explanation anyone, please?


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
Virtuoso
posted Hide Post
You are doing a PRINT so the last value of your field RECORDS_CNT is 1.
You may create a multiverb report like this

.....
SUM RECORDS_CNT NOPRINT
BY &SORT NOPRINT
PRINT
 FULL_NAME
....





Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report 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     [SOLVED]Total amout of records displayed on report

Copyright © 1996-2020 Information Builders