The format in which parameters are stored can vary from one language to another. The following data types have implications for mixed-language programming:
USAGE | Storage Representation |
---|---|
COMP-X | Data is stored with the most significant byte first; that is, the most significant byte is at the lowest address. Although this is standard COBOL format, it is the reverse of the Intel standard of storing the most significant byte last. |
COMP-5 | Defined as Intel reversed byte storage format, in which data is stored with the least significant byte first; that is, the least significant byte is at the lowest address. Using this data-type enables you to pass parameters directly from COBOL to non-COBOL programs without parameter conversion. |
POINTER and PROCEDURE-POINTER |
The entire format is a double-word reversed byte offset. Pointer variables are extremely useful for holding the address of a dynamically allocated memory area. COBOL programs can then access this memory using the SET ADDRESS statement. |