|
- C/PASCAL loops were usually coded as while NOT EOF(file) do read file ... process ... enddo
- whereas RPG/COBOL loops used to be coded as , the do “forever” read file at EOF(file) leave ... process ... enddo
----- Style #1 ------------------------------------------- mykey setll record if %equal mykey reade record dow not %eof ... process ... mykey reade record enddo endif
mykey setll record if %equal do *HIVAL mykey reade record if %eof leave ... process ... enddo endif
-- Antonio Fernandez-Vicenti afvaiv@xxxxxxxxxx
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.