![]() ![]() |
|
TRANSTARTIn transaction processing, this statement is used to mark the beginning of a transaction.
COMMAND SYNTAXTRANSTART {SYNC}{start-text} [THEN statement | ELSE statement]
SYNTAX ELEMENTSSYNC is an option to force the updates to be flushed at transaction end or abort. start-text specifies an optional text string to save with the transaction start record. A THEN or ELSE (or both) statement is required. The THEN clause will be executed if the transaction is successfully started. The ELSE clause will be executed if the transaction start fails for any reason.
NOTESRecord locks set during the transaction will not be released until a TRANSEND or TRANSABORT statement is processed. A program (or series of programs) can only have one active transaction at one time. If another TRANSTART statement is encountered whilst a transaction is active, a run-time error will be generated. |