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
  • Overcast
  • Temperature: 57.2 °F
  • Wind: West, 4.6 mph
  • Pressure: 996 hPa
  • Rel. Humidity: 59 %
  • Visibility: 10 mi
Reported on:
Sat, 03/13/2010 - 11:54

Locations of visitors to this page

Bunch of Twits

  • adds 'Thievery Corporation' to his list of groovey background music to play while programming :) 1 day 2 hours ago
  • is watching very serious blokes playing plastic darts.... wtf is that all about? 1 day 16 hours ago
  • has discovered that his mighty hammer Mjölnir is missing. 4 days 4 hours ago
  • grabs a coffee and settles down for a day of post implementation checks, project closure and user documentation... bah! 5 days 5 hours ago
  • is about to embark on an IHOP pancake eating frenzy with the sprogs... 6 days 4 hours ago
  • just watching tv, a female marine running up a beach, teagan says 'i hope shes not wearing heels because thats hard' ;) 6 days 16 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! 1 week 1 hour ago
  • is al about rpg3, rpg4, php, asp, IBMi, html, xml, wsdl's and any other acronyms I can think of.... 1 week 1 day ago
  • is pretending to type something important to avoid listening to someone talking a load of codswallop. 1 week 1 day ago
  • see... DOTnetnuke.... Microsoft products make my brain shout 'Uncle!' 1 week 3 days ago

Who's online

There are currently 0 users and 33 guests online.