Programming with RPG on the IBMi

RPG and the AS/400 platform have a long history.

When the System/3 was introduced in the 1970s, RPG was first released , the language evolved and RPG II use of the logic cycle was many programmers first experience of pullng hair out while staring at a green screen. RPG III was released with the System/38, which included the ability to work with a fully integrated database. In 1994, RPG IV was released, with it's ILE abilities. Now referred to as RPGLE the language is evolving with every release of i5/OS (the IBM operating system).

The ILE version of the system i programming language allows you to write each program in a series of modules and compile each one seperately. Of course, each of these mdules can also be written in different languages. Anthing from CL (java, control language

In this little series of articles I'm are going to try and cover most aspects of simple RPGLE programming syntax, module design and procedural principles. Everything from the Logic Cycle through to modularized techniques.

Due to its evolving naure RPG is frequently described as RPG2, RPG3, RPG400 and most recently RPGLE or RPGILE. Confused? Well dont worry, spend a lunchtime reading these articles and it will all hopefully become clear.

We will go through the RPGLE variables, conditional execution, subroutines and the input/process/output routines. After this we can move into the more complex areas of posting data to the AS400 database.

The final objective will be lead you through a simple RPG program taking screen input and veriying and updating an AS400 database.



Current weather

Roanoke, Virginia USA

Overcast, mist
  • Overcast, mist
  • Temperature: 55.4 °F
  • Wind: East-Northeast, 3.5 mph
  • Pressure: 1010 hPa
  • Rel. Humidity: 94 %
  • Visibility: 3 mi
Reported on:
Fri, 03/12/2010 - 01:54

Locations of visitors to this page

Bunch of Twits

  • is watching very serious blokes playing plastic darts.... wtf is that all about? 6 hours 58 min ago
  • has discovered that his mighty hammer Mjölnir is missing. 2 days 18 hours ago
  • grabs a coffee and settles down for a day of post implementation checks, project closure and user documentation... bah! 3 days 19 hours ago
  • is about to embark on an IHOP pancake eating frenzy with the sprogs... 4 days 18 hours ago
  • just watching tv, a female marine running up a beach, teagan says 'i hope shes not wearing heels because thats hard' ;) 5 days 6 hours ago
  • saturday morning, determined to do no work today just gonna hang out with the kids, walk the mutts, watch movies and vejjjjjj... hurrah! 5 days 15 hours ago
  • is al about rpg3, rpg4, php, asp, IBMi, html, xml, wsdl's and any other acronyms I can think of.... 1 week 3 hours ago
  • is pretending to type something important to avoid listening to someone talking a load of codswallop. 1 week 10 hours ago
  • see... DOTnetnuke.... Microsoft products make my brain shout 'Uncle!' 1 week 2 days ago
  • is moving out of his PHP-Drupal comfort zone and trying to wrap his brain around PHPNuke and the wonderful world of ASP.NET content manageme 1 week 2 days ago

Who's online

There are currently 0 users and 24 guests online.