Updated: 11/24/2020, 6:35:58 PM
Created: 11/24/2020, 6:35:58 PM
Last Updated By: Ryan Medina
Read Time: 1 minute(s)

# Description

In transaction processing, the TRANSTART statement is used to mark the beginning of a transaction. It takes the general form:

TRANSTART {SYNC}{start-text} [THEN statement | ELSE statement]


SYNC 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.

# Note

Record 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.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide