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



Hi Bruce,

I think your point about the variable getting incremented past the limit of
the mods is the most likely reason.  Thanks for pointing that out.

Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 793-4480 fax
951 522-3214 cell

From: "Bruce Guetzkow" <bruceg@xxxxxxxxxxxxxxxxxxxxxxx>
> <snip>
>     for %occur(mods) = 1 to 3;
>         ..do something..
>     endfor;
> </snip>
> Perhaps one of the IBM crew can do more to explain why the BIF can't be
> used directly.  One other point to consider:  I believe the for-loop
> ends when the index value exceeds the limit.  In my example, when
> modlevel > 3.  If you could use the %occur(mods), you would normally
> want to execute your statements for all mods (just my guess).  Assuming
> you have 3 occurrences, the last increment would set the %occur(mods) to
> 4, which would probably cause an error (although I suppose you could put
> the loop in a monitor, but that is another issue).



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 2/27/2005



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.