|
On 13/01/2009, at 9:53 AM, Rory Hewitt wrote:
Basically we have a backwards compatibility issue, where we have a
'router'
program, which calls certain (user-specified) programs. We now want to
change the parameters to pass to those programs (just adding an
extra one).
However, since the program being called is only known at run-time,
there's a
problem. Plus there might be hundreds of programs to call, and our
users may
decide to change them piecemeal...
Externally define the parameter behaviour (*DTAARA, control file,
etc.). Your router program checks this and only if set passes the new
parameter.
Users modify their exit programs (piecemeal or wholesale) and test
for the extra parameter. If present use it, if not behave the old way.
Once all user programs are modified they can set the control flag to
pass the new parameter.
I guess I could retrieve the MAX parameters value for the called
program
(one of the API's must do this) and see whether it's an ILE program
(in
which case I can pass the new parameter) or it's an OPM program
that's been
changed to define the new parameter...
QCLRPGMI format PGMI0100 will give you the type of program and MIN
and MAX number of parameters.
Regards,
Simon Coulter.
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.