You can make a call under CICS from a COBOL to a C/C++ program or from a C/C++ program to a COBOL program only if the called program does not contain any CICS commands. (The calling program can contain CICS commands.)
COBOL programs can issue an EXEC CICS LINK or EXEC CICS XCTL command to a C/C++ program regardless of whether the C/C++ program contains CICS commands. Therefore, if your COBOL program calls a C/C++ program that contains CICS commands, use EXEC CICS LINK or EXEC CICS XCTL rather than the COBOL CALL statement.
related tasks
Calling between COBOL and C/C++ programs