RPG COMPONENTS


Every RPG program is made up of components. Each component is defined through one or more RPG specification. A description of some of the components follows.

  • Files. The names of files that will be accessed by the RPG program.

  • Input. The information read and processed by the program.

  • Fields, Arrays, Data Structures, and Named Constants. The names of the variables—referred to as "fields" in the RPG language—and constants, that are used to store, compare, and process information within the program.

  • Labels. The names assigned with BEGSR, ENDSR, KLIST, PLIST, EXCEPT, and TAG identifiers. They are used to label subroutines, access data files, declare parameter and key lists, control output, and act as the target of a GOTO , respectively.

  • Calculations. The computations (e.g., math, field manipulation, decisions, and array searching) performed on the information within the program.

  • Output. The results of the program. The processed data is written to a printer, written or rewritten (updated) to a data file, or presented to a user through a workstation device.

  • Procedures. The portions of code that are called to perform a specific task and often to return a value to the caller.




The Modern RPG IV Language
The Modern RPG IV Language
ISBN: 1583470646
EAN: 2147483647
Year: 2003
Pages: 156
Authors: Robert Cozzi

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net