PRB: CICS ABEND ATCV When Using Two Phase Commit and CICS Remote EnvironmentID: Q214406
|
A CICS ABEND error message is recorded in the CICS log on the mainframe computer when the COM Transaction Integrator (COMTI) method invoked is participating in a Microsoft Transaction Server transaction using two phase commit and SNA Server Sync Point Support (for IBM Sync Level 2). For example:
"DFHAC2236 WNWCI51C Transaction TSQU abend ATCV in program LU62TSQU. Updates to local recoverable resources will be backed out."
The CICS program may have been modeled after Synclevel2.txt, the two-phase commit sample program provided with COMTI in the samples directory. This code contains the following:
********************************************************
** CHECK THE EIB FIELDS TO DETERMINE WHAT ACTION COMTI
** HAS REQUESTED, THEN ISSUE EITHER A SYNCPOINT OR
** ROLLBACK.
********************************************************
NORMAL-TX-SYNCPOINT.
IF EIBSYNC = X'FF'
EXEC CICS SYNCPOINT END-EXEC
EXEC CICS RECEIVE
RESP(CMD-RESP)
STATE(CONV-STATE)
END-EXEC
ELSE
IF EIBSYNRB = X'FF'
EXEC CICS SYNCPOINT ROLLBACK END-EXEC
ELSE
EXEC CICS ABEND ABCODE('UNKN') END-EXEC
END-IF
END-IF.
NOTE: This workaround may not address all the possible conversational states that may occur, however, it does handle those encountered during testing at Microsoft. Customers may find this solution is not comprehensive.
After the syncpoint command is issued (EXEC CICS SYNCPOINT), the conversation may either be in a receive state (code: 88) or in a free state (code: 85). If it is in a receive state , you should issue an EXEC CICS RECEIVE statement, as follows, otherwise just terminate the program as in the product sample.
The following code would accomplish the task:
*FIRST, DETERMINE THE CONVERSATION STATE.
EXEC CICS EXTRACT ATTRIBUTES
STATE (CONV-STATE)
END-EXEC.
*THEN, CONDITIONALLY, ISSUE THE RECEIVE.
IF CONV-STATE = 88
EXEC CICS RECEIVE
RESP(CMD-RESP)
STATE(CONV-STATE)
END-EXEC
END-IF.
For more information, please see the IBM manual, "CICS Trasnaction Server for OS/390 CICS Messages and Codes Relase 2." The document ID number is GC33-1694-01.
Additional query words:
Keywords :
Version : WINDOWS:1.0,1.0 SP1
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: January 19, 1999