× 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.



Thanks Chuck!

That's how the developer ended up doing it....no word yet if it works ;)

Charles

On Mon, Nov 14, 2011 at 2:12 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:
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
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.