× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Good morning. In order to retrieve the number of record of a file you may
want to use:
 RTVMBRD  FILE(YourFile) MBR(YourMember or *FIRST) NBRCURRRCD(&RKNO) , where
&RKNO is DEC( 10 0)
As far as i know, you cannot retrieve the number of record selected by
OPNQRYF unless you do CPYFRMQRYF.
Sincerely

Domenico Finucci
Fiditalia , Milano, 02- 4301-2494


-----Messaggio originale-----
Da: Steven.Gray@arvalphh.co.uk [mailto:Steven.Gray@arvalphh.co.uk]
Inviato: marted́ 5 febbraio 2002 13.00
A: midrange-l@midrange.com
Oggetto: OPNQRYF - Zero records

I am trying to test if the OPNQRYF file produced has no records from the
selection criteria.

I can do this by using the DSPFD to an OUTFILE and then using DCLF and RCVF
to read the 1st record which will contain the &field MBNRCD , to inform me
if there are indeed 0 records.

But,

is this the best way to go ,

as this will only allow 1 file comparison in the CL program.

If I want to test any more files for zero records , then they have to have
their own CL programs.Which is obviously not ideal.
Also the testing of this is messy , as another file has to be created which
holds the testing files data.

Regards

Steven Gray
Development/Support Analyst




_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.