|
I happened to be modifying an old report program that uses a MODS, and after
converting it to ILE, I was rewriting a section of code and tried the
following:
for %occur(mods) = 1 to 3;
..do something..
endfor;
It seemed like a good idea (save a couple of lines of code<g>), but the
syntax checker didn't like it. The v5r2 manual says %occur is an unsigned
numeric value; and the only notes on "index name" in the FOR op code are
that "...variables should be declared in the Definition specifications." and
"The index-name can be any fully-qualified name, including an indexed array
element."
Well, ok, %occur(mods) is not a "name", but it sure seems like this would be
a valid use. Oh well, back to work.
Peter Dow
Dow Software Services, Inc.
909 793-9050 voice
909 793-4480 fax
951 522-3214 cell
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/2005
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.