|
Only thing I can think of is to write a small program that generates the
CL version from the RPG and is triggered every time the RPG copy member is
updated.
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.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On Jun 9, 2017, at 3:30 PM, Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx>wrote:
know I
Off the wall question for a Friday.
I've got a source member full of constant definitions that I copy into
hundreds of RPG programs. Here's a small sample:
* Active/deleted/suspended
D @Active C 'A'
D @Deleted C 'D'
D @Reinstate C 'R'
D @Suspended C 'S'
D @Update C 'U'
Makes code a lot more readable. I literally have hundreds of these
constants. If I want a change, all I have to do is change it here,
recompile any RPG programs that use the particular one I changed, and I'm
done.
I have a situation now where I'd like to use one in a CL program. I
could make an equivalent member for CL and copy _that_ into CL programs,_only_
but that defeats the purpose of having a constant defined in one and
one place.it's
I'm not coming up with any slick way. Maybe there isn't any. Or else
above my pay grade. Any ideas jump out?list
Thanks.
--
Jeff Crosby
VP Information Systems
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com
The opinions expressed are my own and not necessarily the opinion of my
company. Unless I say so.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
link: http://amzn.to/2dEadiD
Help support midrange.com by shopping at amazon.com with our affiliate
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.