COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Figure 32 Directly Contained Programs and Indirectly Contained Programs
An HP COBOL program can call any program directly contained within itself and any other
separately compiled program. It cannot call a program indirectly contained within itself. The
programs in Figure 32 can call each other:
Can call the program ...
SubDddCccBbbAaaManeThe program ...
XXXMane
XAaa
XXBbb
XXCcc
XDdd
XSub
Common Programs
If a program has the COMMON clause in its Identification Division, it is called a common program,
and it can be called by any program directly or indirectly contained in the program that directly
contains it. In Figure 32, if Aaa, Bbb, and Ccc are common, the programs in Figure 32 can call
each other:
Can call the program ...
SubDddCccBbbAaaManeThe program ...
XXXMane
XXAaa
XXXBbb
XXXXCcc
XXXXDdd
XSub
You gain no performance benefits by making Ddd common.
796 Calling Other Programs and Routines