COBOL Manual for TNS and TNS/R Programs
Calling Other Programs and Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
23-4
Nested HP COBOL Programs
Nested HP COBOL Programs
Nested HP COBOL programs are contained in other HP COBOL programs. Nested
programs can be directly or indirectly contained. In Figure 23-1, the compilation unit
contains two separately compiled programs (Mane and Sub), which contain nested
programs, and the programs have these relationships:
The program ... Directly contains ... And indirectly contains ...
Mane Aaa, Bbb Ccc, Ddd
Aaa Nothing Nothing
Bbb Ccc Ddd
Ccc Ddd Nothing
Ddd Nothing Nothing
Sub Nothing Nothing
Figure 23-1. Directly Contained Programs and Indirectly Contained Programs
Program: Mane
Program: Sub
One
separately compiled
program
Another
separately compiled
program
Program: Bbb
Program: Ccc
Program: Ddd
One run unit
Program: Aaa
VST501.vsd