|
sheng dan kuai le (Merry Christmas in chinese) every one. James - You are comparing a common syntax in C that a C programmer must know to write a C program with a feature in RPG that most RPG programmers try to avoid. - I agree that there is no reason to rewrite and existing RPG cycle program if you only need to make some minor changes to it. However, if it is harder than coding your own logic, as you mentioned before, then I don't see why not rewrite it to use a more modern style of RPG programming. MHO -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of James H H Lampert Sent: Friday, December 22, 2006 9:23 AM To: RPG programming on the AS400 / iSeries Subject: Re: Cycle programs and control level breaks One other thing about The Cycle: It's there in any RPG main program, whether you use it constructively or not, just like case sensitivity is present in C, whether you use it constructively or not. If you pretend C isn't case-sensitive, you're probably going to have a lot of things fail to compile. If you pretend The Cycle doesn't exist, you're eventually going to inadvertently sneak something past the "no way for the program to end" check in the RPG compiler, and end up with a program that just keeps repeating itself until you kill it. -- JHHL -- 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.