You can create applications that have both COBOL and non-COBOL programs
calling each other. To do this:
Make sure any non-COBOL program that runs preserves the COBOL run-time
system, as follows:
The called program must preserve the local COBOL run environment
(that is, the registers) according to C calling conventions
The global COBOL run environment (that is, data areas allocated by
the COBOL system, open file, buffers, environment variables, and so on) must
not be destroyed or altered, except under the direct control of the COBOL
system.
Compile the non-COBOL programs to standard Intel native
object code.
Link the compiled programs either to the dynamic loader run-time
support module or to your statically or dynamically linked COBOL
application.