RPG Programming for Beginners
RPG is the well known programming language on the IBM i platform. Earlier versions of RPG ran on the old AS/400 and iSeries machines in decades gone by... the beauty of RPG is that it is fully backwards compatible. But, over the years RPG has evolved massively!
If there was a quick and easy solution to “how to quickly become a productive RPG IV and ILE programmer” then all of us old AS400, iSeries, and IBM I developers would have gobbled up that solution in double-quick time.
Upgrading your programming skills from RPG OPM (Original Programming Model) to RPG ILE (Integrated Language Environment) can seem daunting.
RPG really is much easier than it seems!
Modern RPG is just old RPG with some bells and whistles – if you know old style RPG then you already have the building blocks to expand into the shiny modern world of ILE RPG.
So, if you are an experienced legacy RPG Programmer but haven't kept abreast with the huge changes to RPG over recent years, don't be put off. It’s not as daunting as it seems. You can easily become more familiar with ILE RPG (also confusingly called RPG4, RPG5 or RPG /Free) just by running older RPG source through IBM’s CVTRPGSRC command.
Comparing the new source members with the originals lets you easily compare the source code layouts and the general formatting differences. For 99.9% of source members, the resulting source should compile as a program that works the same as the original.
Let's start with an easy example of taking a very simple (4 line) RPG/2 program and modernizing it through RPG3, through RPG400 and ending in RPGLE /Freeformat