Supported data types passed by reference (indirect) between C and COBOL
Table 1 identifies the data types that can be passed by reference (indirect) between C and COBOL.
C | COBOL |
---|---|
signed short int | PIC S9(4) USAGE IS BINARY |
signed int, signed long int | PIC S9(9) USAGE IS BINARY |
float | COMP-1 |
double | COMP-2 |
pointer to... | POINTER, ADDRESS OF |
decimal | USAGE IS PACKED-DECIMAL |
struct | Groups |
type array[n] | Tables (OCCURS n TIMES) |