Tag Archives for " #RPG400 "

RPG Evolution, Modernization and Refactoring – Step 5 of 4 – RPG FREE FORMAT 2017

Convert it to RPG FREE FORMAT — RPG Evolution 2017 style That’s right — this is step five of four. Much like RPG evolution, the modern day free-form RPG code is way more advanced than earlier neanderthal column based RPG. The original code blog was way back in 2009, but RPG has quietly been improving all […]

Continue reading

Doing Loop the Do Loops in RPG3 and RPG /Free

So, whenever possible, if I’m editing some old RPG3 or RPG400 code I spend a coffee* cleaning the code up to a more readable form. Cleaning old Do Loops in RPG3 can be a head scratching experience: Use CVTRPGSRC if its old RPG3 stuff Change ‘1’ to *ON Change ‘0’ to *OFF Change Z-ADD to […]

Continue reading

Upgrade old RPG ‘DO’ loops to sexy new RPGLE ‘FOR’ loops

Upgrading old source code — aka refactoring — is a fun past time and there are frequent little code snippets that I refactor over and over again. Some look similar but some look very different in modern language style. It’s perhaps worth documenting them in case someone else is trying to figure out alternative ways […]

Continue reading

What does an RPG Programmer do?

If you are a software developer then you will know that RPG is an IBM programming Language. It’s also a Rocket Propelled Grenade. It’s also an acronym for Role Playing Games. This blog will have lots of waffle about being an RPG Programmer and just the occasional explosion or online sexy elf. RPG Programmers create […]

Continue reading

History of the IBM RPG programming language

*RPG – NO, RPG Developer doesnt mean that I write Role Playing Games, primarily aimed at men in basements pretending they are fit young elven women and running around casting spells 😉 So, as an RPG* Developer I am definitely biased towards IBM’s best and most versatile language. IBM RPG has evolved massively from the […]

Continue reading

RPG Evolution, Modernization and Refactoring – Step 4 of 4 – Setting RPG Free

Setting RPG Free Convert RPG from Column to free format So, if we take the code and actually upgrade it to be the current style of RPG/Free we can see all the mainline specs are now written in freeform code style and it looks yummy: h datfmt(*iso) timfmt(*iso) option(*nodebugio) debug //——————————————————————- // system name: fix […]

Continue reading

RPG Evolution, Modernization and Refactoring – Step 3 of 4 – Paroling RPG4

Upgrade RPG4 to use free-friendly code standards If we were using Rational Developer/i software we could do this automatically. But as a manual process its simple, if a little tedious. Basically when we are going to skim through the code and replace all indicators with the modern and preferred %FOUND BIF technique: H debug ***************************************************************** […]

Continue reading