|
<Jeff Young>
Newer programs are being written that *do* use ILE functions (where
appropriate).
In these programs, it is often necessary to call some of these "Black
Box
programs".
Is there any benefit to converting them to Service Programs?
</Jeff Young>
Simple technical changes, just for changing it, don't have any benefit,
but might expose riscs. I would recommend to break the process down to
steps:
- provide procedure wrappers for your OPM programm, if you have such an
animal with function code, one for each code
seperate in and out parms by defining a returntype (Datastructure) for the
return values and make the input parameters called by value in the
prototype. The complete logic remains in your unchanged OPM Programm and is
called by the new wrapping procedures.
- in new ILE programms use the wrapping procedures, don't use the OPM
- in case of changing one of the existing ILE programms, which is using
the OPM call, change it to use the wrapping procedure.
- in case of changing the implementing OPM programm, move the logic to the
wrapping procedures and provide an OPM wrapper for all programms using the
OPM version.
- in case of major changes to one of your OPM programms, decide wether it
coul be worth to migrate the programm to ILE. In this case change the call
to the OPM function to the procedure version.
Dieter
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.