Return Codes

In addition to the return codes described for each call type in the following sections, the following return codes are possible.
ECI_ERR_INVALID_CALL_TYPE
The call type was not one of the valid call types.
ECI_ERR_CALL_FROM_CALLBACK
The call was made from a callback routine.
ECI_ERR_REQUEST_TIMEOUT
The time-out interval expired before the request could be processed, or the specified interval was negative.
ECI_ERR_RESPONSE_TIMEOUT
The time-out interval expired while the program was running.
ECI_ERR_SYSTEM_ERROR
An internal system error occurred. The error might have been in the CICS® Transaction Gateway or in the server. The programmer should save the information returned in the CICS Transaction Gateway's error log, as this will help service personnel to diagnose the error.
ECI_ERR_INVALID_VERSION
The value supplied for eci_version was invalid.

In some implementations, some of the return codes documented here and for each call type will never be returned.

The mapping of actual return code values to the symbolic names is contained in the following file for the Windows® operating systems:
C
<install_path>\include\cics_eci.h
Cobol
<install_path>\copybook\cicseci.cbl
and in the following files for the UNIX® and Linux® operating systems:
C
<install_path>/include/cics_eci.h