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     COUNT NO. OF RECORDS

Read-Only Read-Only Topic
Go
Search
Notify
Tools
COUNT NO. OF RECORDS
 Login/Join
 
Member
posted
How can we count total no. of records returned by a query

Also how can create reports having union of tables in dev studio report painter

can anyone help us
 
Posts: 14 | Registered: January 11, 2006Report This Post
Expert
posted Hide Post
use the &LINES variable
TABLE FILE CAR
SUM SALES
BY CAR
IF COUNTRY IS ...
END
-RUN
-SET &HOWMANY = &LINES ;
the variable &LINES tells you how many records are in the extract.
(see mickey's post below..excellent point)

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
For your first question use the find function above and enter RECORDS.

For the second one, again, use the find function above and enter UNION.

To save going over and over these questions it is always prudent to try and use the find function first. There is plenty of information out there in the Forum already, you just have to find it Smiler

Would it beneficial for you to go on a course? Contact your local support people for info - no I'm not an IB employee, I just think that you would benefit greatly by attending a training course.



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
There are actually TWO &variables that give you different numbers depending on the verb (SUM or PRINT) that is used.

Try the following:

TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
END
-RUN
-TYPE RECORDS = &RECORDS AND LINES = &LINES

&RECORDS = 18 because there were 18 records pulled from the CAR database for this request. However, &LINES = 5 because there are five lines of data shown on the report. This is due to the usage of the SUM verb.

Choose whichever one meets your need.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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     COUNT NO. OF RECORDS

Copyright © 1996-2020 Information Builders