OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

6.5.5 CBLDCTRS('U-ROLL ') - Rollback in unchained mode

Organization of this subsection
(1) Form
(2) Purpose
(3) Data area where the UAP sets values
(4) Data area for which a value is returned
(5) Status codes
(6) Notes

(1) Form

(a) In a multi-thread environment
PROCEDURE DIVISION
 
CALL 'CBLDCTRS' USING identifier-1
 
DATA DIVISION
 
01 identifier-1.
   02 data-name-A PIC X(8)  VALUE 'U-ROLL  '.
   02 data-name-B PIC X(5).
   02 FILLER     PIC X(3).
   02 data-name-C PIC 9(9) COMP.
 
(b) In a single-thread environment
PROCEDURE DIVISION
 
CALL 'CBLDCTRN' USING identifier-1
 
DATA DIVISION
 
01 identifier-1.
   02 data-name-A PIC X(8)  VALUE 'U-ROLL  '.
   02 data-name-B PIC X(5).
 

(2) Purpose

When CBLDCTRS('U-ROLL ') terminates normally, the global transaction terminates. Outside the scope of the global transaction, the SPP cannot execute as a transaction.

(3) Data area where the UAP sets values

(4) Data area for which a value is returned

(5) Status codes

Status code Meaning
00000 Normal termination
02501 The request code (data-name-A) may be invalid.
02502 The program is issued from an incorrect context.
02504 Insufficient memory
02506 Network error
02507 A timeout error occurred in the processing for CBLDCTRS('U-ROLL ').
02515 OpenTP1 is inactive.
02517 An insufficient memory condition occurred within the transaction process.
02518 System error
02542 The permanent connection has been released.
02544 The client ID specified for data-name-C differs from the one received with CBLDCCLS('CLTIN ') or CBLDCCLS('EXCLTIN ').
03403 Due to the heuristic determination, some or all transaction branches rolled back. See the message log file for details. After this status code returns, the process is outside the scope of the global transaction.
03404 The heuristic determination completed the transaction. But an error makes it impossible to determine the result. See the message log file for details.
After this status code returns, the process is outside the scope of the global transaction.

(6) Notes

To normally terminate a CUP process after rolling back the transaction, be sure to execute CBLDCTRS('U-ROLL ') to commit the transaction.