A COBOL program can nest, or contain, other COBOL programs. The nested programs can themselves contain other programs. A nested program can be directly or indirectly contained in a program.
There are four main advantages to nesting called programs:
The following example describes a nested structure that has directly and indirectly contained programs:
Example: structure of nested programs
related tasks
Calling nested COBOL programs
related references
Scope of names