| DB Access Class Library for COBOL V1.0 API Reference - Microsoft(R) Windows(R) - - Microsoft(R) Windows NT(R) - - Microsoft(R) Windows(R) 2000 - |
Contents
Index
![]()
|
Chapter 6 DB Access Library API Reference
6.2 Methods
Completes the transaction directed at the database associated with an object of the FJDB-DATABASE class.
INVOKE DATABASE-A "COMMIT-TRAN" RETURNING RET-CODE.
DATABASE-A [attribute:OBJECT REFERENCE FJDB-DATABASE]
Specifies an object of the FJDB-DATABASE class.
RET-CODE [attribute:S9(9) COMP-5]
Returns a value of 0 if the method ends normally; otherwise, returns an error code.
Data manipulations that have been carried out during the transaction are reflected in the database.
When a COMMIT-TRAN method is issued, the transaction enters automatic transaction mode automatically. To restart the transaction, issue a BEGIN-TRAN method.
If a COMMIT-TRAN method is issued when a BEGIN-TRAN method has not been issued (automatic transaction mode in effect), an error will be returned upon issuance.
Contents
Index
![]()
|