I'm using a Java program with a PCML file to pass and retrieve parameters from a RPG service program, successfully. However, some of the RPG code I'm calling returns a value to indicate whether the program ran successfully or not. I have coded for this in the PCML file program element:
<program name="xx" entrypoint="xx" path="/QSYS.lib/XX.lib/XXXX.srvpgm" returnvalue="integer"/>
and ensured that the returned value is a 4byte integer (as per the PCML spec).
The problem is I can't figure out how to access this value within my Java code.
Can anyone tell me how?