× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"Bartell, Aaron L. (TC)" wrote:
> 
> I am trying to call the following RPG Service program using the
> ServiceProgramCall Class.  The input and output parms are data
> structures (I can get it to work with regular fields but not with data
> structures).
> ...
>      P CallRPG_ds      B                   Export
>      D CallRPG_ds      PI
>      D  pInput                             Value LikeDS(CallRPG_myDS)
>      D  pOutput                            LikeDS(CallRPG_myDS)
> ...

Aaron, I think ServiceProgramCall only supports 4-byte-integer and
pointer parameters when passed by value.  Any types other than
4-byte-integer have to be passed by reference (passing a pointer by
value).  Your first parameter would have to be passed by reference (use
CONST in the RPG).  If you can't change the parameter because you
already have RPG callers of this procedure, make a wrapper procedure
CALLRPG_ds2 with parameters by reference that calls through to
CallRPG_ds passing them by value.  Then Java can call CallRPG_ds2 and
your other callers can continue to call CallRPG_ds.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.