Good to know, Barbara - I don't think I would have thought to do this with other than a variable.

Vern

On 2/11/2020 3:54 PM, Barbara Morris wrote:
On 2020-02-11 1:12 p.m., Vernon Hamberg wrote:

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.


Named constants are in the same namespace as variables. RPG allows the
name from an externally-described file to be a named constant if it's
an output-only field, or the file is defined as output-only in RPG.



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