EPI TEREC_LINK RC 9 CICS_EPI_ERR_SYSTEM and
CICS_EPI_GETEVENT RC 18 CICS_EPI_ERR_MORE_DATA
Resolving the problem
Upon examining CICS client trace for the EPI program and a corresponding
CICS server trace it was found the TerEC_Link call returned 0xfff7 (9).
Earlier, we saw that CICS_EpiGetEvent returned 0xffed (18). In the cics_epi.h file we find this actually translates to CICS_EPI_ERR_MORE_DATA .
The customer said they were passing a transaction name.
The first program name in this transaction definition was not DFHMIRS. Any time a transaction name is passed in an EPI program, the Transaction is basically being used to replace CPMI. DFHMIRS must be the first program name of that TRANSACTION DEFINITION. The customer changed the Transaction definition to point to DFHMIRS and this fixed the problem.