![]() |
![]() |
|
|
TXCOMMIT(3cbl)
Name
TXCOMMIT() - commit a transaction
Synopsis
DATA DIVISION.
* Include TX definitions.
01 TX-RETURN-STATUS.
COPY TXSTATUS.
PROCEDURE DIVISION.
CALL "TXCOMMIT" USING TX-RETURN-STATUS.
Description
TXCOMMIT() is used to commit the work of the transaction active in the caller's thread of control.
If the transaction_control characteristic (see TXSETTRANCTL()) is TX-UNCHAINED, then when TXCOMMIT() returns, the caller is no longer in transaction mode. However, if the transaction_control characteristic is TX-CHAINED, then when TXCOMMIT() returns, the caller remains in transaction mode on behalf of a new transaction (see the RETURN VALUE and ERRORS sections below).
TX-RETURN-STATUS is the record used to return a value.
Optional Set-up
Return Value
Upon successful completion, TXCOMMIT() returns TX-OK, a non-negative return value.
Errors
Under the following conditions, TXCOMMIT() fails and returns one of these negative values:
See Also
TXBEGIN(3cbl), TXSETCOMMITRET(3cbl), TXSETTIMEOUT(3cbl), TXSETTRANCTL(3cbl)
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|