AS400 RPG Simulator

半城伤御伤魂 提交于 2019-12-09 05:57:55

问题


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 dont have access to any of theses systems. So is there any way I can test the java program ? Are there any RPG simulators for Windows?

Any help or ideas will be highly useful

With Regards, Srinivas


回答1:


You used to be able to get free access to an iSeries at Innovative Systems (this service has been discontinued as of March 21 2012). On their machine you can experiment with RPG.

Some other remarks,

  • You can call iSeries programs from java including RPG programs. But if you really want to interface (use parameters/arguments) you better use ILE RPG. ILE RPG supports anything you need to interact with java including the correct datatype (including pointers)
  • JTOpen is the open source class library. That one runs fine on the as400. But in the iSeries world the normal way to install this class library is as an "License Program". Don't be scared by the word License. It is just the iSeries way like apt-get on Linux. See IBM Infocenter for more information
  • At last but not least, JTOpen is a regular java class library. You can test and try that library on your local machine. Ofcourse, you can not open a iSeries data-area but you get the feel for this class library.

BTW I think you can forget about a RPG simulator for Windows. There may be some compiler may be around that I don't know of but that is not the specific thing about RPG, it is the fact that it runs on a iSeries. And unfortunately no iSeries emulator is available.




回答2:


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.




回答3:


there is a free AS400 server at http://pub400.com/ Hope this works!!




回答4:


You might inquire with the folks at Infinite who have a product called Infinite I. It claims to enable RPG/400, ILE RPG, COBOL/400, ILE COBOL, DDS, & CL on Windows, Unix, or Linux. Integration with Java in this environment is not mentioned in their brochure.




回答5:


As it has been already mentioned - there is no RPG simulator. What you might try is to register here for free iSeries account. The problem is that without any knowledge of OS/400 you won't get far. Do you have anyone in your company who can log in with you and help you with the environment?



来源:https://stackoverflow.com/questions/2103928/as400-rpg-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!