z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Name scope of external data in a COBOL run unit

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Figure 1. Name scope of external variables for COBOL dynamic callName scope of external variables for 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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014