Generally, when one ILE COBOL program calls another, operands are passed from the calling ILE COBOL program to the called ILE COBOL program in the following manner:
For each operand that is listed on the CALL USING statement in the calling ILE program, there must be a corresponding operand that is specified by the USING phrase in the Procedure Division of the called program.
When using the ADDRESS OF special register, you no longer need to ensure a one-to-one mapping between the USING phrases of the two programs. For those data items in the Linkage Section that are not specified in the USING phrase of the Procedure Division header, you can use a SET statement to specify the starting address of the data structure. Once the SET statement is run, the data item can be freely referred to since the address of the data item is already set. For an example of a SET statement used in this manner, refer to Figure 83. In Figure 83, (15) and (16) illustrates how the SET statement is used to set the starting address of the data structures ls-header-record and ls-user-space at the beginning of the user space.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.