He has to use the %found BIF to see if there are any records that have that partial key. If so, he is guaranteed to get the first one according to the FIFO, LIFO, etc., settings.

If not found, well, it's sort of like you are the slowest car on the freeway when you are the only on the road, so go to the right lane!!


-------------- Original message --------------
From: "Aaron Bartell" <aaronbartell@xxxxxxxxx>

What if the file pointer is currently after the first match?

Aaron Bartell

On 8/15/08, Chamara Withanachchi wrote:
Yes you will be getting the first match.


Thanks and Regards,

Chamara Withanachchi
Chief Executive Officer

Lanka Business Solutions Pvt Limited | CDSoft Lanka
# 90/A, Jaya Road, Udahamulla, Nugegoda, Sri Lanka.
Tel: +94 112 835416
Mob: +97 150 5698644
chamara@xxxxxxxxxxxx | cwithanachchi@xxxxxxxxx
www.360lanka.com | www.cdslk.com

Sent from my BlackBerry(R) wireless device

-----Original Message-----
From: James Lampert

Date: Fri, 15 Aug 2008 17:10:43
To: RPG programming on the AS400 / iSeries
Subject: Quick CHAIN question

If I CHAIN to a file giving only a partial key, am I guaranteed to get
the first match in the key sequence?

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