A Multiple Procedures Module — Overview

An ILE program consists of one or more modules; a module is made up of one or more procedures.

  1. A procedure is a self-contained unit of computation that is called using a bound call.
  2. The RPG Compiler restricts the RPG programmer from calling a linear-main procedure with a bound call. Instead, the bound call to the linear-main procedure is made by the compiler-supplied Program Entry Procedure (PEP) of the program. The prototype for the linear-main procedure always uses the EXTPGM keyword, so calls using the prototype perform a program call.
Note:
In the RPG documentation, the term 'procedure' refers to both main and subprocedures.


[ Top of Page | Previous Page | Next Page | Contents | Index ]