Tag Archives for " #sample "

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

RPG example: store webservice reply XML or JSON in IFS

As an RPG Programmer you are probably writing a ton of code to talk to remote webservices out there in internet land. If you are just leaning webservice programming – here is a simple RPG CODE EXAMPLE which talks to a remote webservice (using the open source HTTP API)¬†and stores the reply from the webserice […]

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

RPG Evolution, Modernization and Refactoring – Step 2 of 4 – RPG Three becomes Four

MODERNIZE RPG SOURCE CODE – IBM Command to upgrade RPG3 to RPG4 First step is upgrde the old RPG3 (old style 80 character RPG) to the newer RPGLE format (112 character style). IBM gives us a command to do this and after running UPGRPGSRC (Upgrade RPG Source) on the old source a new member is […]

Continue reading

RPG Evolution, Modernization and Refactoring – Step 1 of 4

I’ve recently been writing all my new programs in RPG Free format. Attending RPGWORLD earlier this year, gave me the impetus to finally commit myself to the new and improved style of RPG coding. I’m currently in contract at a shop that still has twenty year old programs running in production, the developers still write […]

Continue reading