Mapping arrays

The COBOL equivalent of a Fortran array of one of the data types listed in Table 1 is a fixed-length table that includes one or more occurs clauses. A COBOL fixed-length table and Fortran array can be passed between COBOL and Fortran routines only if the number of repeating elements is a constant value and the elements are in contiguous storage locations. COBOL tables containing the occurs depending on clause and Fortran assumed-shape or assumed-size arrays cannot, therefore, be passed between COBOL and Fortran routines.

In COBOL, tables of more than one dimension are arranged in row major order, while in Fortran, arrays of more than one dimension are arranged in column major order. You can correspond elements of a Fortran array to a COBOL table simply by reversing the order of the subscripts.