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


Mapping aggregates

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

When passing aggregates between COBOL and PL/I, you should ensure that the storage layout matches in each HLL. Also, be sure to completely declare every byte in the aggregate so that there are no open fields.

HLL facilities provide listings of the aggregate elements to help you perform the mapping. The COBOL MAP compiler option and PL/I AGGREGATE compiler option provide a layout of aggregates.

Arrays in PL/I map to tables (OCCURS clause) in COBOL.

The options in the entry declaration that inhibit or restrict the remapping of data aggregates in PL/I are listed as follows:
NOMAP
Specifies that a dummy argument is not created by PL/I. The aggregate is passed by reference to the invoked routine.
NOMAPIN
Specifies that if a dummy argument is created by PL/I, it is not initialized with the values of the aggregate.
NOMAPOUT
Specifies that if a dummy argument is created by PL/I, its values are not assigned by the aggregate upon return to the invoking routine.
ARGn
Applies to the NOMAP, NOMAPIN, and NOMAPOUT options. It specifies arguments to which these options apply. If ARGn is omitted, a specified option applies to all arguments.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014