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.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
I think &RECORDS is the variable the contains the number of records the request retrieved.
&LINES is the variable that contains the number of lines in the answer set.
TABLE FILE CAR
SUM RCOST BY COUNTRY
END
will give you different LINES from
TABLE FILE CAR
PRINT RCOST BY COUNTRY
END
Same number retrieved but different number in the output.
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Okay, I think I see. So it seems the LINES value is determined by an aggregate function (SUM) in the query. In your first case, LINE will be the total number of COUNTRY, not the total number of records extracted by the query.
But what if your query has no aggregate function. Why would the numbers be different?
This example is similar to my actual code:
TABLE FILE ORDER_PAYMENTS
BY ORDER_KEY AS 'ORDER_NUMBER'
BY CUST_ID AS 'CUST_NUMBER'
WHERE ORDER_DT GE HADD((HGETC(8, 'HYYMDs')), 'DAY', -30, 8, 'HYYMDs');
WHERE INACTIVE_ACCT NE '1' OR INACTIVE_ACCT EQ MISSING;
WHERE ORDER_KEY IN &ORDER_KEY;
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS CUST_ORDERS FORMAT FOCUS INDEX ORDER_KEY
END
Note: &ORDER_KEY is a predetermined list of unique order numbers.
Since there is no verb object included in the request, the output is aggregated by default, since each order number and customer number will only display one time, no matter how many records are extracted for that combination of values.
8009 Windows, HTML, AHTML, Excel In FOCUS since 1983
Remember that WebFocus is building an internal matrix. The Records value display the number of records returned from the source. From some sources such as a flat file that could be everything. From other sources such as SQL it is selected data from the source. The Lines value displays the matrix rows to be output as the results of any manipulation to the matrix. As already commented there are multiple reasons why the values may not be the same.
WebFOCUS 7.7.05 (Someday 8) Windows 7, All Outputs In Focus since 1983.