Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section

TStart

Marks the beginning of a transaction.

Synopsis

TStart

Arguments

The TStart statement does not have any arguments.

Description

TStart marks the beginning of a transaction. Following TStart, database operations are journaled to enable a subsequent TCommit or TRollback statement.

Any locks issued within a transaction will be held until the end of the transaction even if the lock is released.

Examples

The following example illustrates the use of the TStart statement:

TStart
If StorePerson(personobject) Then
 TCommit
Else
 TRollback
End If
Copy code to clipboard

See Also