× 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.



Dave,

even a bottom tested program without a primary file uses all the
"cycle", unless you specify *nomain in an h spec.

it just doesn't use it more than once.   nearly all the logic inherent
in the cycle is executed behind the scenes - before and after the c
specs section proper.  the fact that your program doesn't care has no
bearing on that.

but, to be clear, it's true.  when people speak of the cycle, they're
usually speaking of using primary files - typically with level breaks
or matching records - imo, the only good reason to use primary and
secondary files.

for the record, i've written maybe 10 primary file programs in the
last 10 years - mostly to take advantage of level breaks.  I detest
setting up my own hold fields, comparing, etc.

On 11/30/05, daparnin@xxxxxxxxxxxxxx <daparnin@xxxxxxxxxxxxxx> wrote:
>
>
>
>
> > The anti-cyclists still use the cycle.  They just don't understand it.
>
>
> Speaking as one who thinks that he understands it but doesn't use it unless
> it's an existing program that needs modification I have to ask--Is it a
> cycle program if LR is set on before it iterates (i.e. is it top-tested or
> bottom-tested)?  If it's bottom-tested then it would never "cycle" back to
> test LR.  It would test it at the bottom, find it on, and end.  Thus, it
> wouldn't technically be a cycle program.
>
> If I had to guess I would say that it is top-tested in which case you would
> be right and all programs would be cycle programs.  If not, then it would
> be a cycle-capable program.  This getting a bit nitpicky.
>
>
> Dave Parnin
> --
> Nishikawa Standard Company
> Topeka, IN  46571
> daparnin@xxxxxxxxxxxxxx
>
> --
> 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 thread ...

Replies:

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.