|
However, since the extra parameter would be a simple string, I think I *
might* simply define a UDS (data-area data-structure) in the caller, set it
to my required value and then use OUT to update it prior to calling the
programs. Those called programs that need the value can simply define the
same UDS and it's immediately available to them. The caller will
automatically create it in QTEMP and lock it, so it's effectively a CONST
parameter. Same system for RPG/400 or CL programs, I'd guess.
I'm trying to think of drawbacks to this approach... any thoughts.
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.