ILE COBOL can call or be called by other ILE, OPM, and EPM languages.
This chapter describes:
In general:
For a full description of how to call an ILE COBOL program from another language, refer to that language's programming guide.
One consideration for you when passing or receiving data with non-ILE COBOL programs is the matching of the parameter lists. If your ILE COBOL program is calling a non-ILE COBOL program, you must understand what is expected in the way of input, and set up your data items accordingly. If your program is being called, you must know what will be passed, and set up your Linkage Section to accept it.
Another consideration for you is the treatment of the RETURN-CODE special register. The RETURN-CODE special register cannot be set by a non-ILE COBOL program. When the RETURN-CODE special register contains an incorrect value after control has been returned from a called program, set the RETURN-CODE special register to a meaningful value before your ILE COBOL program returns control to its caller. Otherwise, an incorrect return code will be passed back to its caller.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.