The LC blue "i" means it is not referred to in the program, not in the PRTF. In fact, if I understand this, there are fields in the PRTF of the same name as these constants, is that right? There is no way for the PRTF to know what is in the RPG source, right?

So I don't think it is a bug. But if it something you think should be checked - namely, a named constant with the same name as something in a PRTF - an RFE is in order.

I'm a little surprised that this works, like should there not be a message about a variable already defined? But maybe a constant isn't in the same namespace as variables.

The people who now develop RDi are often on these lists, we can see if they respond to this idea.

Good luck

On 2/11/2020 11:01 AM, Greg Wilburn wrote:
I don't know about this specific case... but RDi will give a lot of false positives with that lowercase blue i (data structure subfields for one)

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of DEnglander@xxxxxxxxxxxxxxx
Sent: Tuesday, February 11, 2020 11:57 AM
To: wdsci-l@xxxxxxxxxxxxxxxxxx
Subject: [WDSCI-L] An RDi bug?

I just encountered this, and was wondering if it is a bug or not:

I have an RPGIV program that uses an externally defined printer file. That
printer file has a record defined as a few CHAR fields such as NUMBER,
NAME, ADD1, ADD2, ADD3. The RPG program writes out to this record.

In the program, those fields are not defined as character fields, but as
constants. In RDi, it tells me that those Constants are not referenced and
has the lowercase blue "i" on the line. Even though those are not
referenced in the program itself, they are used as fields in the printer
file record. I am concerned that RDi is telling me these are not
referenced, when they are referenced in the printer file.

Does anyone else see this?

I am using Version:

Thank you,
Douglas Englander

"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments accompanying it) contain confidential information belonging to the sender. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of the information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission."

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.