AS400 RPG Simulator

前端 未结 5 1920
我寻月下人不归
我寻月下人不归 2021-02-09 05:52

I have a urgent requirement to call an RPG Program from java. As suggested in this Accessing RPG on iSeries from Java question. I am planning to use JTOpen. But unfortunately I

5条回答
  •  清歌不尽
    2021-02-09 06:30

    Are there any RPG simulators for Windows?

    A RPG simulator won't do you any good. What you'd need would be something like an "ILE simulator for Java". It isn't "RPG" that is being called from Java;, but rather it's an "ILE *PGM or *SRVPGM object with particular parameter-handling characteristics". (Okay, it's also possible to call OPM *PGM objects, but no need to discuss differences.)

    The point is simply that a RPG simulator wouldn't be enough. You need an "environment simulator" that processes the parameter values for Java. If you actually had a "RPG simulator", it's effectively guaranteed that calls from Java (especially via JTOpen) are not going to work with anything running in it like they would through the live PCML interface. You could probably effect calls to such programs; the calls just wouldn't be coded the same way so the exercise would be pointless.

    You can't worry about it if you aren't given access to an appropriate server. Just code procedures that encapsulate any remote calls and tune them to the server environment when the time comes for that.

提交回复
热议问题