|
Sorry Guys but I feel compelled to join in this discussion. As one who has written RPG code in I through IV, I got to say that, regardless of which version you use, the cycle is still, and will continue to be a viable method for writing effective, and yes even elegant, RPG code. Just because you use an input primary file, doesn't mean you can't use structure constructs, or perform non-cycle operations like, except time output, chain, set pointers, and the read operations, or even other tools like embedded SQL. I use the best tool available to solve the problem at hand, and if the cycle fits, I'll use it, even Norm Abrams uses a hand tool once in awhile. If the program uses level break processing and it's running in batch I'll use the cycle (or maybe embedded SQL). I just don't understand why you would want to write code for a function that the system already supplies. After all, you don't write machine level access routines to DASD, or do you? I view those of you without cycle skills with destine, because I can do it either way, and your one-sided. I do have some questions though for you structure purest: What is the functional difference between a Leave, or Iter operation and the GOTO and TAG? Does anyone know when IBM will modify embedded SQL error checking to allow for something other then branching to a TAG operation? The gray beard Bill Erhardt Erhardt@baldwinhq.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.