|
I would have to disagree with that theory. Simply because it goes against what setll suppose to do. If a file has a 3 chars long key field and the file contains records below: AAA BBB CCC If I do setll with *blank, I would expect it to go to BOF even though blank record does not exist in the file. Interesting to know that setgt 0 actually work. That kind of blow away Alan's theory that RRN 0 is not a relative record number and it doesn't know who to position the cursor. -----Original Message----- From: rpg400-l-bounces+lim.hock-chai=usamobility.com@xxxxxxxxxxxx [mailto:rpg400-l-bounces+lim.hock-chai=usamobility.com@xxxxxxxxxxxx] On Behalf Of Kurt Anderson Sent: Friday, October 20, 2006 2:34 PM To: RPG programming on the AS400 / iSeries Subject: RE: Using RRN 0 to do Setll on arrival sequence file I said:
In a file where the first RRN is 2, SetLL 1 positions to the deleted
RRN
1 record, not to EOF. (I'm guessing it positions to the deleted
record, though I know it doesn't position to EoF.) What I was getting at is you can SetLL to any relative record number from 1 to highest RRN in file and not position to EoF, regardless of whether or not any of those records have previously been deleted. That concept is a guess, but seems to be how it works. Once you exit that range of RRNs, you will not find a record and position to End of File. Kurt Anderson Application Developer Highsmith Inc -- This is the RPG programming on the AS400 / iSeries (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 mailing list archive is Copyright 1997-2025 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.