×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




At it's most basic...

The cycle is an implicit DOU %eof(Primary) loop.

There's lots more too it, but that's the key.

Need a program to print a list all customer names in the CUSTMAST file?

Create an RPG program with
- declare CUSTMAST designated as a primary file. (f-spec)
- declare a printer file (f-spec)
- define output record for the printer file (o-spec)

And boom, you're done. Not a single line of executable code (c-spec)
written by you needed. The cycle handles input and output.

(Ok, I'm ignoring printer overflow handling, but even that's handled in the
o-specs IIRC)

Charles

On Thu, Apr 27, 2017 at 1:38 PM, Douglas Dunn <dunndouglas0@xxxxxxxxx>
wrote:

As another young developer just getting into iSeries, I promise to only
write new software with the modern techniques. And I should probably get
RDi. I am still curious about the old fixed-form style, mainly because the
syntax looks very exotic to me. Can someone explain the concept of the
"cycle" that was mentioned about?



This thread ...

Replies:

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

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