• Subject: Re: LookAhead
  • From: "James W. Kilgore" <qappdsn@xxxxxxx>
  • Date: Sat, 27 Sep 1997 03:23:49 +0100
  • Organization: Progressive Data Systems, Inc.

> In a message dated 97-09-26 05:18:21 EDT, you write:
> 
> > Hello All,
> >  I used to use the record Look Ahead (NS  **) on my S36 RPG programs when
> >  it was the best method to do certain processing.  As, you cannot use
> >  Look ahead with externally defined AS400 files.  Has anyone found any
> >  real neat replacements for this function?  I would appreciate a nudge in
> >  the correct direction.
> 
One of the primary differences in moving from the S/36 to the AS/400 is
not implementing what you used to do, but in getting the results you're
after within the framework of where you're now at.

That's sort of a long winded way of saying: don't repeat what "used" to
work, but take a step back and look at getting the results you're
after....not necessary within the program, but within office procedural
step.

Quite frankly, in 24 years of RPG I've never found any compelling reason
to use lookahead.  Anything that could have used it can also be
accomplished through level breaks. It only depends on how one looks at
solving a particular problem.  To the best of my knowledge the purpose
of lookahead is to let you know, within the current cycle, that you are
about to have a change of code value at the next read. Sort of like out
of cycle excpt output only out of cycle level break input? (I know all
thing don't lend themselves well to level breaks...but that's a process
issue and not a particular program issue....another day)

With all good intentions, I would like to ask what you are trying to get
at instead of telling you how to keep doing what you are most familiar
with.  As you stated, it's not available to externally described files,
so let's get to where you want and avoid program described files, if we
can.

James W. Kilgore
QAPPDSN@ibm.net
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].