|
> First of all, before we spend too much more time... Why > aren't you just > calling this procedure the "normal" way? like this: > > eval Rtn = MAX(4: 3: 10) > > I'm assuming you've found some special need for calling it > with this API > instead? Indeed, we have a table driven application and we want to add the capability to the final users of this application to define their own functions by defining the service program and procedure to call along with the parameters definitions. This feature would be powerful in those cases when our customers have already created functions to perform things not considered by our application. > Since I don't have the service program you're trying to call, I made > a quick test program that has a MAX procedure, and tried calling it. Well, my MAX procedure looked pretty much like yours, but the parameters were not defined as VALUE as yours. I added this keyword a got the api working. >From the API Reference: This API does not support calling procedures that have been defined using "#pragma argopt". >From the ILE C Programers Guide: Use the #pragma argopt directive to optimize space pointer parameters. This directive causes space pointers to be loaded into registers for the procedure call. How do i interpret this ? Is VALUE related to this optimization ? Wouldn't be another way to call procedures with parameters defined as CONST or passed by reference ?
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.