I need to call a RPGLE procedure which is in a NOMAIN module and returning a 10 char. Example of the procedure I need to call is as follows:
PRtvChgDesc B Export
dRtvChgDesc PI 10
d P_Name 6 Const
If possible please provide a sample code or example. I am being able to call the procedure from Java using the API ServiceProgramCall. The problem I am facing is unable to get the return value which in this case is 10 char.