Previous Topic: Degrees of Coupling

Next Topic: Error Recovery

Program Modularization

The following practical rules can be applied to the modularization of programs:

Remember that RPG III and COBOL programs cannot be called recursively; for example, twice in the same invocation stack for a job. This puts limitations on how programs can be linked together. For example, if a maintenance program ca CAll an inquiry program, and the inquiry program ca CAll the maintenance program, the situation might arise whereby a recursive call is attempted.

Note: You may achieve a logical or design modularization which may be implemented in a redundant manner; for instance by the use of /COPY or %INCLUDE members in HLLs, or by the use of CA 2E internal functions.

The interface between any two programs can be regarded as a database format; it may be implemented as such, using externally-described data structures in order to allow for change.