Content-Type: text/html Wikipedia: RPG

[Home]RPG

HomePage | RecentChanges | Preferences | Random Page
You can edit this page right now! It's a free, community project

RPG is an acronym for Role-playing game.
RPG also stands for "Report Program Generator," one of the few languages created for punch-card machines that is still in use today (thankfully using a line editor and not the punch cards!). It was developed by IBM for their range of mainframe? systems, especially the System/390 - as RPG2.

RPG3 was ported to the AS/400 (a mid-range machine, no called the I-series) and became RPG/400 with a much cleaner syntax, and better file/database? reading capabilities. This language was the mainstay of development on the AS/400, and its editor was a simple line editor with prompt templates for each specification (type of instruction).

An RPG program would start off with a File Specification, listing all files being read, created, written or queried, followed by an Input Specification listing all the variables in use along with any Data Structures and one dimensional arrays. The Calculation Specification would follow which contained the actual meat of the code, and finally any inprogram Output Specifications - like a summary report.

RPG3 eventually evolved into RPG4 which reduced the limiting punch-card type layout and allowed a free-format text and expressions within its Extended Calculation Specification.

RPG on the AS/400 thrived on the object-orientated look of the underlying operating system (OS/400) to an extend that everything was a file (very similar to the Unix philosophy), so the terminal screen could be updated (with sub windows) by writing to an file (of type *DISPLAY)


HomePage | RecentChanges | Preferences | Random Page
You can edit this page right now! It's a free, community project
Edit text of this page | View other revisions
Last edited June 18, 2001 10:30 am (diff)
Search: