# TRANSQUERY

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 TRANSQUERY function is used to detect whether or not a transaction is active on the current process. It takes the general form:

TRANSQUERY()
1

TRANSQUERY will return 1 (true) if the process is within a transaction boundary, and 0 (false) if it is not. In other words, TRANSQUERY will return true if the TRANSTART statement has been issued but a TRANSEND or TRANSABORT statement has not yet been processed.

By default, all hashed files are marked for inclusion in a transaction, however this can be modified using the jchmod utility.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide