Name scope of external data in a COBOL run unit
Figure 1. Name scope of external
variables for COBOL dynamic call
In Figure 1, Routines 1, 2, and 3 comprise a COBOL run unit. External data declared in COBOL Program 1 maps to that declared in COBOL Program 2 in the same load module. When a dynamic CALL to COBOL Program 3 in another load module is made, the external data still maps, because the name scope of external data in COBOL is the enclave.