Caché Basic Reference
TStart
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

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
See Also