Focal Point
[SOLVED] Difference between &LINES and &RECORDS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7411073003

September 24, 2008, 02:19 AM
Narayana
[SOLVED] Difference between &LINES and &RECORDS
Can anyone let me know the difference between &LINES and &RECORDS in detail?

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


Prod: WebFOCUS v7.1.4 OS: Windows Outputs: Excel, HTML, Pdf
September 24, 2008, 03:15 AM
GamP
&RECORDS is the number of records read from the database.
&LINES is the number of records that are actually in the report, so after aggregation and selections have been done.

But, why do you want to know? What do you need it for?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 24, 2008, 07:31 AM
mstanislov
GamP, you missed a great opportunity to teach a newbie how to fish. Narayana, do a search on statistical variables. When you find a document called "creating and working with variables", that's the one you want. This document contains information on more than just the statistical variables. I'd recommend you keep it handy.


WebFocus 7.6
Windows
outputs vary: have used HTML, PDF and Excel
September 24, 2008, 08:19 AM
Tony A
Touché Good One but could you update your signature please? Wink
September 24, 2008, 08:33 AM
mstanislov
Wow, I'm sorry. Breda asked for that specifically as part of my registration (which I provided) so I'm surprised it's not there and I'm sorry I did not notice it was not there. I've updated it.


WebFocus 7.6
Windows
outputs vary: have used HTML, PDF and Excel
September 24, 2008, 11:27 AM
Darin Lee
quote:
&RECORDS is the number of records read from the database.
&LINES is the number of records that are actually in the report, so after aggregation and selections have been done


Close--

Since the cat's out of the bag, so to speak, &READS is the number of records read, &RECORDS is the number of records retrieved in the final answer set, &LINES is the number of printed lines in the final answer set.
These and more are described in the document mentioned by mstanislov.


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
September 25, 2008, 01:08 AM
<Shyam L>
&lines and &records are part of WebFOCUS Statistical Variables.

&lines is the number of lines printed in last answer set

&records is the number of records retrieved in last answer set

Execute below code to understand the difference:
TABLE FILE CAR
SUM
DCOST
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE HOLD
END
-RUN
Type &lines and &records to see the difference.
September 25, 2008, 06:26 AM
Narayana
Thanks everyone for the answers.
mstanislov, the document was very helpful.


Prod: WebFOCUS v7.1.4 OS: Windows Outputs: Excel, HTML, Pdf