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
RPG is a high-level fully procedural programming language used by businesses to create commercial business applications on IBM's leading minicomputer system, the AS400 iSeries. RPG has gained wide acceptance and has evolved massively since its inception.
Free-form RPG allows code to be specified as free-form statements rather than in specific fixed columns. Free-form code is still restricted to columns 8 – 80. The /FREE and /END-FREE compiler directives are tolerated, but are no longer required for free-form.
RPG IV, a.k.a. RPGLE) was released in 1994 as part of the V3R2 release of OS/400 (now known as IBM i). With the release of RPG IV, the RPG name was officially no longer an initialism.
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,
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.
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.
there is a free AS400 server at http://pub400.com/ Hope this works!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With