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



FWiW: Not deferring to the database to do the key comparisons may lead to /unexpected results/ under some conditions. There is a message which lists several examples, and in the manual somewhere too. One example is for sort sequence using shared weight rules, those are applied by the database but not in the simple predicate; e.g. using *LANGIDSHR x'81'=x'C1'.

Regards, Chuck

Alan Campin wrote:
Absolutely no reason to fail that I know of.

Problem with technique is that READE is equivalent to
a CHAIN and dumps the cache. Better is

Setll xxkey xxfile;
DoU 0 = 1;
Read xxFile;
If %Eof(xxFile) Or
xxKey <> DbKey;
Leave;
EndIf;
// Do something
EndDo;

On Wed, Nov 4, 2009 at 2:59 PM, jmmckee wrote:

Where I work, training is something of a dirty word.

To read multiple records using a partial key in RPG III,
>> I do this:

xxkey chain xxfmt LR
*INLR doweq *OFF

xxkey reade xxfmt LR
enddo
<<SNIP>>

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.