On 12/03/2008, at 11:45 PM, Phil Kestenbaum wrote:
It's a program that is maintained. I also wouldn't do it this way.
Definetly was not showing on the printed output so I ran debug on
it and
was showing as blank. Yet another array in that group was visible.
This is what I mean by "UNCLEAR". You ran debug on "it". What's "it"?
The program? That is how I read your sentence. If so what variables
did you examine in debug? What was showing as "blank"? The array
itself? An array element? The field you print?
What do you mean by "Yet another array in that group was visible"?
You can't have groups of arrays (unless they are in the same data
structure which doesn't appear to be the case here). Do you mean the
elements of the MADE array are empty?
Are you sure that the compile-time data (after the ** at the end of
the source) is in exactly the same order as the compile-time arrays
are defined?
Do you have empty data lines in the compile-time area?
The RPG III (/400) compiler will complain (but not fail) if you have:
1) Two much data for the array elements
2) Too little data for the array elements
It will fail if you omit all data for a defined compile-time array
Compile-time arrays do work, even in RPG III (/400) so any failure in
this area is likely a defect in your code.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.