2.2.6 ATMI Conversational Client to CICS/ESA DTP, Client Grants Control
Figure 2-15 DMCONFIG File Entry
![DMCONFIG File Entry DMCONFIG File Entry](img/prog-2.1.15.jpg)
- ATMI client invokes
toupsrv
service. - The
toupsrv
service issuestpconnect
forSIMPDTP
, which is advertised in theDM_REMOTE_SERVICES
section of DMCONFIG file. TheTPRECVONLY
indicates the server gets control and the first conversation verbtoupsrv
can issue istprecv
. - User transaction DTPS starts
TOUPDTPS
program. - It is recommended you save the
EIBTRMID
to a program variable. This value may be used to identify the specific conversation on your CICS/ESA APPC verbs. - The
EXEC CICS RECEIVE
command receives asend state
indicator from thetpconnect
TPRECVONLY
flag. No data is received into theINBUFFER
. - The
EXEC CICS SEND
command returns theOUT-BUFFER
contents into the clientstprecv odata
buffer. TheEXEC CICS SEND
command relinquishes control to the client by using theINVITE
option. This is communicated to thetprecv
asTPEV_SENDONLY
. - The
EXEC CICS RECEIVE
command receives thetpsend
idata
contents into the server’sIN-BUFFER
, along with notification that the server has relinquished control. - The
EXEC CICS RETURN
ends the conversation, communicated to thetprecv
asTPEV_SVCSUCC
.
Parent topic: Distributed Transaction Processing (DTP) Examples