# TRANSABORT

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

The statement is used to abort the current transaction and reverse any updates to the database. It takes the general form:

TRANSABORT {abort-text} [THEN statement | ELSE statement]
1

Where:

abort-text specifies an optional text string to save in the transaction abort record.

A THEN or ELSE (or both) statement is required. The THEN clause will be executed if the transaction is successfully aborted. The ELSE clause will be executed if the transaction abort fails for any reason.

Any record locks set during the transaction will be released upon successful completion.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide