rpg

1 Results

Dictionary

RPG

(1) (Role Playing Game) See CRPG. (2) (Report Program Generator) One of the first program generators designed for business reports, introduced in 1964 by IBM. In 1970, RPG II added...

Dictionary

Definition: RPG

(1) (Role Playing Game) See CRPG.

(2) (Report Program Generator) One of the first program generators designed for business reports, introduced in 1964 by IBM. In 1970, RPG II added enhancements that made it a mainstay programming language for business applications on IBM's System/3x midrange computers. RPG III and RPG IV added more enhancements and have been widely used on the AS/400. RPGLE added the "Integrated Language Environment (ILE)," which enables C, Java and other modules to be integrated into the program.

Until RPGLE, all processing statements were written in strict columnar format. The following RPGLE example changes Fahrenheit to Celsius. The A lines are Data Description Specs (DDS) code. They define a display file and are compiled separately. The F line links the processing code (C lines) to the A lines:

 A                        DSPSIZ(24 80 *DS3)
 A  R FHEITR
 A                        CA03(03 'End')
 A                    6 18'Enter Fahrenheit:'
 A    FRHEIT   3Y 0B  6 42DSPATR(PC)
 A                        EDTCDE(J)
 A                    9 18'Celsius is:'
 A    CGRADE   3Y 0O  9 42DSPATR(PC)
 A                        EDTCDE(J)
 A                   23  8'F3=End'
 FFheitd   CF  E     Workstn
 C  *IN03  DoWEq   *Off
 C         ExFmt   Fheitr
 C         Eval    CGrade=0
 C         Eval    CGrade=((Frheit-32)*5)/9
 C*        ExFmt   Fheitr
 C         EndDo
 C         Seton                         LR





Sponsored White Papers, Webcasts & Resources

  • The relational mistake

    A major reason most projects fail is simply that the people managing it don't understand that the tools are intended for and therefore misapply them. The two biggest examples of that are closely...

    Blog posts | October 31, 2007 12:15am PDT

Additional Results

  • RPG, PHP, and history

    What RPG and PHP have in common is an applications model that works - and the enemity of computer science professionals everywhere. They're a lot like cognitive dissonance theory that way: the...

    Blog posts | April 28, 2008 4:15am PDT

  • The relational mistake

    A major reason most projects fail is simply that the people managing it don't understand that the tools are intended for and therefore misapply them. The two biggest examples of that are closely...

    Blog posts | October 31, 2007 12:15am PDT

ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

ie8 fix