COBOL Manual for TNS and TNS/R Programs
Source Program Organization and Format
HP COBOL Manual for TNS and TNS/R Programs—522555-006
2-10
Directly Contained Programs and Indirectly
Contained Programs
Directly Contained Programs and Indirectly Contained Programs
One program can contain another program directly or indirectly. Suppose a program, L,
contains another program, R. Program L directly contains program R when program L
does not contain any other program that also contains program R. Program L indirectly
contains program R if program L does contain any other program that contains
program R.
In Figure 2-2, all the programs are in the same run unit and:
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 2-2. 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