Friday, July 24, 2009

Calling an RPG program from Groovy

DON DENONCOURT shows how to call RPG from Groovy, via an sql stored procedure call

I've been integrating Java applications with AS400/iSeries/Systemi RPG programs for over ten years. I've covered it in my book (Java Application Strategies for the iSeries) as well as in many of my articles. Calling RPG from Java can be complex. There are 4 or so options but I've been fairly emphatic about using JDBC callable statements as it is the simplest approach. To do that you need to create a stored produce "wrapper" for the RPG. But the Java code still can be quite verbose. Not so with Groov

No comments:

Post a Comment