|
AMEN!! :-) Nick Radich Sr. Programmer/Analyst EPC Molding, Inc. Direct (320) 679-6683 Toll free (800) 388-2155 ext. 6683 Fax (320) 679-4516 nick_radich@xxxxxxxxxxxxxx Alan Shore <AlanShore@xxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 10/20/06 03:20 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> cc Subject RE: Using RRN 0 to do Setll on arrival sequence file Actually my theory is still correct. As Charles previously mentioned "Setll w/rrn = 0 means, position the file one record before the 1st record, ie. before the beginning of the file." Whereas SETGT w/rrn of 0 means, position the file one record after the record before the 1st record, i.e. at the first record. Now everybody do what I have just done. That is re-read what I have just written and say "What the @!#$%^&*()_ is THAT suppose to mean?" Alan Shore NBTY, Inc (631) 244-2000 ext. 5019 AShore@xxxxxxxx rpg400-l-bounces@xxxxxxxxxxxx wrote on 10/20/2006 03:49:54 PM:
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 deletedRRN1 record, not to EOF. (I'm guessing it positions to the deletedrecord, 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. -- 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-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.