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



On Fri, Jun 9, 2017 at 3:38 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
Alternatively (and probably better) create a small DB2 table that holds all constant definitions and actually attach a trigger that regent both RPG and CL (and even COBOL!) on any update.

As cool as Denis's polyglot solution is, I would go this route. If
these really are supposed to be systemwide constants, then the
system's database is the most sensible place for them to be. (There
are plenty of production systems out there that actually store their
constants in a table, and any programs that use them just read them
straight from there at init time! No /copy or /include at all for that
purpose!) And manually maintaining two lines of code for every
constant (or more, if you have more languages to support) doesn't feel
quite right.

John Y.

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.