Search code examples
javarpgjtopen

Call RPG function from Java


I want to find away to call a RPG Function from Java. I must be able to pass in parameters and to return result sets, and output parameters.

I was able to find this but it is using a stored procedure. Not the way I want to go. I also found this question Invoking AS400 RPG From Java they talking about JTOpen. Still trying to look for tutorials to see if JTOpen could help me, but have not found any yet.

If you can please help me to find a way to call RPG functions from Java, I would appreciated that.


Solution

  • Everything is explained in the IBM Toolbox for Java (JTOpen) Programmer's Guide.

    Specifically the ProgramCall class will allow you to call an HLL from Java.