I just looked and the RTVMBRD can also be used to get record count. But that is not selective.

It's easy to get too complicated - I should know - I do it all the time!! And the LOOKUPSQL - I have to check that out, too.


On 3/22/2012 9:31 AM, Stone, Joel wrote:
Please explain what you are trying to do.

Are you trying to retrieve this count into a CL variable?

Then use this command:

WHERE('custkey = ''123''') RETURNVAR(&custCount)



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vinay Gavankar
Sent: Wednesday, March 21, 2012 6:26 PM
To: Midrange Systems Technical Discussion
Subject: Documentation about QC2LE


Where can I find any documentation about what procedures are available in
QC2LE directory, and maybe how to use them?

I came across a program, which was using prototype called _RLocate to get
the RRN of a record based on a key from a keyed logical file.

I wanted to get the total number of records in that file which have Key
equal to a particular value.

Any information would be helpful.


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].