I heard about RPG programming from my lecturer. I would like to give it a try. The problem with it is that, how I do the programming? I don't know the OS and the IDE to suit the needs. Any help?
3 Answers
Thank you for your interest in RPG. RPG runs on an IBM i (aka AS/400, iSeries, Systemi) system. This is not a server you can easily buy on your own. The starting price is around $15,000 on up to millions. However, you can pay for access to a system or can try out the system using a free host. Check out http://www.holgerscherer.de/ for a free account. (Thanks @kratenko)
Take a look at midrange.com which is a bunch of mailing lists related to the platform. Also look at their wiki which is a decent staring point for at least seeing what the system is about. (Note: I am a moderator for the Midrange.Com's .NET mailing list).

- 20,959
- 28
- 93
- 149
-
2Well, you _might_ be able to get a used/really old one somewhere for a reasonable price, especially if some local business went belly-up. I know one guy here who has one... – Clockwork-Muse May 07 '12 at 17:47
Check out http://pub400.com/ (used to be at http://www.holgerscherer.de/ -- it changed in 2017) -- you can actually get a free account on an AS/400 (aka sytem i) and start some programming in RPG there. But you'll be stuck with Version V5R4 there (they have more recent ones, but not for free...) and some of the features that let you program RPG in a way it starts making fun where introduced in V6R1. On the other hand: if you'll ever have to work with people who have been programming RPG for quite some time, it's possible you wont ever see any of that features used anyway, so V6R1 would give you a wrong impression...
Don't get me wrong, it is possible to write useful (and maybe even structured) programs in RPG, even pre-V6R1. But there are RPG-Programmers out there that refuse to use such unuseful modern features as procedures, and they prefer to use hundreds of global variables with tons of side effect, where every variable has two or three different names. Don't follow that path. Just two tips for you, as reading other people's code could possibly lead you in the wrong direction:
- The concept of procedures has been integrated into RPG years ago. I don't see any reason for using subroutines nowadays, but you will see them. Still you needn't use them in your code.
- Datastructures can be declared as
qualified
. Always do that! Never use unqualified datestructures. You can even pass them to procedures as parameters.
If you ever have a really nasty problem, just google until you find an answer by Scott Klement. Normally there always is a solution to your problem allready posted by him...

- 7,354
- 4
- 36
- 61
-
-
@mikewills glad to help -- if it really is what you wanted, please think about accepting my answer. thanks – kratenko May 17 '12 at 09:35
-
@MikeWills oh right -- you edited it. I should pay more attention... still glad to help anyway *g – kratenko May 18 '12 at 10:03
-
-
Unfortunately, due to abuse of the system by inconsiderate/unscrupulous users, PUB400 is currently not issuing any free accounts to new users. You can still use the system for free with an anonymous account, but there is no guarantee that any files/programs/etc. that you create anonymously will still exist after you log out. You might have to start from scratch every time you log in. – John Y May 31 '18 at 21:30
Ask your teacher about access to the IBM i at your school. If there isn't one, your options are limited. There are several time sharing services available; search for "iseries timeshare". You'll need a TN5250 emulator to access the machine. To the best of my knowledge, there are no RPG compilers / runtime environments that will work on a PC.
As far as the IDE, the machine has a native application (green screen) called PDM which uses an editor called SEU. I use a graphical IDE based on Eclipse called WDSC. This has been superceded by a new, for-fee, product called Rational Developer for Power Systems.
I second Mike Wills' answer to check out the forums at midrange.com.
One final thing. RPG/400 is obsolete. There haven't been any changes to RPG/400 is a long, long time - like a decade. The current version of RPG is ILE RPG, often called RPG IV. The reference manuals for the system are at http://publib.boulder.ibm.com/eserver/ibmi.html If you don't know what version, choose V5R4. Click the top link on the left panel, then Programming, then Languages.

- 7,558
- 22
- 25
-
1Reference manuals have moved to https://www.ibm.com/support/knowledgecenter/ssw_ibm_i – mike Mar 10 '17 at 08:20
-
1A less expensive option to RDi is http://miworkplace.com. It even has a free version restricted to http://pub400.com. – jmarkmurphy Mar 30 '17 at 11:33
-
1No one should be using SEU any more. It no longer supports the entire RPG language, and you would have to use it with syntax validation turned off if you want to use any of the more recent developments. Might as well use Notepad. – jmarkmurphy Mar 30 '17 at 11:36