I have a java web app running on a Tomcat server. And I am trying to call an RPG program that exists on an AS400 and pass it parms. I can do this with the CommandCall method and passing it an AS400 object. And then using the .run method to create a CL string to call an RPG program. The problem is, that the parms that get passed in are incorrect.
It has to do with the value of a field being declared as 45 long in RPG and it only containing 7 chars in java. The parm in the RPG contains those 7 characters and also contains other values from other parms. Almost like Java is passing a reference, not a value.
Is there a better way to call an RPG Program from a Java Web App? I read something about PCML but not sure exactly what that is. Thanks for any help.
It has to do with the value of a field being declared as 45 long in RPG and it only containing 7 chars in java. The parm in the RPG contains those 7 characters and also contains other values from other parms. Almost like Java is passing a reference, not a value.
Is there a better way to call an RPG Program from a Java Web App? I read something about PCML but not sure exactly what that is. Thanks for any help.