Call to RPG from OW


I am trying to write a Business Function that calls a RPG program and passes some data to it. The RPG program does some processing and comes back with some data which has to be passed back to the Business Function.
On Knowledge Garden I found a call 03122206. But I still cannot figure out how to do this. Also what does #ifdef JDENV_AS400 do?
I am on One World XE 7333 SP14.1.



Active Member
My favored method would be to create a custom file and write a trigger program to execute after insert, the file would contain your parameters both in and out. You can loop in the ER checking the record until the parameters you require are filled. Create a next number index to make sure you get the correct record.

Hope this helps.