× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Not that I'm an expert, but RPG is the only language I know that has a
counter loop with an implied counter.  Sure, it's convenient and I've used
it plenty of times.  I guess the real question is what would it cost to
implement it in free form syntax?

OTOH I have a friend who's an excellent programmer who does everything with
a while loop.  In over 15 years of RPG he's incremented counters explicitly.
His rationale is that it leaves more brain cells available for solving more
complicated problems, it works, and it's as easy to read as anything else.


> -----Original Message-----
> From: rob@dekko.com [mailto:rob@dekko.com]
> Sent: Wednesday, October 03, 2001 12:35 PM
> To: rpg400-l@midrange.com
> Subject: RE: Free format DO, or make index optional
>
>
>
> Ok, I use List API's.  In the generic header section it says
> how many list
> entries there are, GHListNbr.  What I want to do is:
>
> /free


/* big snip                                                   */






>
>        // Retrieve the generic list header.
> And I have no use whatsoever for X.  And X must be previously defined.
>
> Rob Berendt
>
> ==================
> A smart person learns from their mistakes,
> but a wise person learns from OTHER peoples mistakes.
>
>
>
>                     "Njal Fisketjon"
>                     <n.f@figu.no>           To:
> <rpg400-l@midrange.com>
>                     Sent by:                cc:
>                     rpg400-l-admin@mi       Fax to:
>                     drange.com              Subject:     RE:
> Free format DO, or make index optional
>
>
>                     10/01/2001 06:25
>                     PM
>                     Please respond to
>                     rpg400-l
>
>
>
>
>
>
> Rob Berendt wrote:
>
> > I had a 1 do x.
> > I wanted to make that free form.  Can't be done.  I converted it to
> > for y=1 to x
> > But I have no use for y, in this case.
>
> What are you trying to do?
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L)
> mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> 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@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> 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 thread ...


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

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.