×
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.
On 14-Nov-2011 08:02 , Charles Wilt wrote:
<<SNIP>>
if I want to read a set of records with a certain key, do I need
to call _rlocate() followed by _rreadK() in a loop or can I use
_rreadn()?
Note: I'll be dealing with a partial key...
I am not aware of any requirement for using locate. For keyed
processing I recall using just _rreadk() "Read a Record by Key" primed
with opt=__KEY_EQ then looping with opt=__KEY_NEXTEQ to read another row
with the same key value as the one found with __KEY_EQ. Refer to the
"positioning macros" which are defined in recio.h to see what\how to
navigate using those /opts/ [processing options]. The specified key
length enables the partial key, but the key feedback\return value always
includes the full key value; for the length defined for the file that
was opened.
Note there is a C programming list here too.
http://archive.midrange.com/c400-l
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.
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.