Determining the success of ECI calls
After calls to the external CICS® interface
(ECI), the content of the RETURN-CODE
special register
is set to an unpredictable value. Therefore, even if your COBOL program
terminates normally after successfully using the external CICS interface, the job step could
end with an undefined return code.
About this task
To ensure that a meaningful return code occurs at termination,
set the RETURN-CODE
special register before you terminate
your program. To make the job return code reflect the status of the
last call to CICS, set the RETURN-CODE
special
register based on the response codes from the last call to the external CICS interface.