|
Charles, That's easy. Put this in your I-SPECS directly below where you described the file: I AA ** I 1 1 FIELDNAME That's all you have to do. Anytime you reference FIELDNAME it will refer to the record which is stored in the input area but has not been moved to the processing area to be processed in the normal RPG cycle. It's the ** instead of NS or AA that denotes the field as a look ahead. Hope that helps! -Bill ------------- message: 5 date: Tue, 21 Nov 2006 14:32:24 -0500 from: "Charles St-Laurent" <dringpiece@xxxxxxxxxxx> subject: looking for an example of lookahead fields Hi! I'm looking for a RPG program that uses lookahead indicator ** with a program described file. I searched on the IBM information center and I found no sample code using this functionality... Is there any old programmer here that still know how to use it? Charles -------------
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.