I am trying to migrate an application written in COBOL and C to AIX using IBM COBOL version 3.1.
I noticed, that sharing data between COBOL module and C using the EXTERNAL clause does not work:
01 var1 pic 9(09) comp-5 is external;
The linker map them both to different memory locations,
My problem is that the application has a lot of this kind of data sharing between modules.
Is there any way (directive, switch etc.) to change behavior?
(using other compilers on other platforms, like HP-COBOL/DEC-COBOL or MF-COBOL it is working fine)
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.