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



Yes, that's my primary purpose for it, Mark.  I will use the trailing read in simple loops, but for situations where the conditioning is complex, I prefer leading read with ITER.  I fogrot an important point.  I don't do DOU condition, I just do a forever loop.

setll (field1: field2) file1r;
dow (1=1);

  reade (field1: field2) file1r;
  if %eof(file1);
    leave;
  endif;

  if someConditionNotMet;
    iter;
  endif;

   ...doStuff

enddo;

I should put in an RFE for a DO opcode that simply loops.  I hate writing (1=1).  But that's just me.  :)


On 11/11/2019 11:31 PM, mlazarus wrote:
Roger, Don,

 I personally like it, since it's concise and doesn't require an additional %EOF() test, but it doesn't lend itself to using the ITER opcode.

 -mark


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.