2.2.9 Transactional ATMI Client Request/Response to CICS/ESA DTP
Figure 2-18 DMCONFIG File Entry
Note:
This is not the recommended method of performing a DTP transactional service. Please refer to the transactional DPL using request/response for the recommended method.- ATMI client
toupclt
invokestoupsrv
service. (Note that eachtpcall
made in the program must be bookended with atpbegin
and atpcommit
.) - The service issues
tpbegin
to start a transaction. - The
toupsrv
service issuestpcall
forSIMPDTP
, which is advertised in theDM_REMOTE_SERVICES
section of the DMCONFIG file. - User transaction DTPS starts
TOUPDTPS
program. - Save the
EIBTRMID
to a program variable. This value is used to identify the specific conversation on your CICS/ESA APPC verbs. - The
EXEC CICS RECEIVE
command receives theidata
buffer contents for processing. - The
TOUPDTPS
program processes data. - The
EXEC CICS SEND
command returns theOUT-BUUFER
contents into the clientsodata
buffer.CONFIRM
indicates the conversation is finished.INVITE
allows the client to respond with aCOMMIT
request. - The
toupsrv
service issuestpcommit
to end the transaction. TheCOMMIT
is received on theEXEC
CICS RECEIVE
verb and the server issuesEXEC
CICS RETURN
to commit the resources, terminate the transaction, and free the outstanding conversation.
Parent topic: Distributed Transaction Processing (DTP) Examples