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



Simon, the array itself showed as blank when debugged at any statement
level. Thus it was also not printing as it is on a output line. A
different array in that group did however display and print. I
appreciate your trying to help. Obviously something is amiss but it's
not that critical now.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Simon Coulter
Sent: Wednesday, March 12, 2008 6:17 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: also a senior moment - compile time array


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.

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.