Previous Topic Next topic Print topic


Handling Return Codes in Mixed Language Applications

COBOL can pass and receive return codes from other programs.
Restriction: The following applies to native COBOL only.

Most languages are capable of passing a return code back to the calling program. COBOL can pass and receive them as follows:

The RETURNING phrase enables you to define the format of the return code yourself and so cope with whatever size of return code you require.

Previous Topic Next topic Print topic