Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Nested programs

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:

Nested program structure with directly and indirectly contained programs. Link to detail.

Example: structure of nested programs

related tasks  
Calling nested COBOL programs

related references  
Scope of names


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)