TurboIMAGE/XL Database Management System Reference Manual (30391-90012)

Table Of Contents
148 Chapter5
TurboIMAGE/XL Library Procedures
DBCONTROL
Mode 14: Allow a privileged mode caller to set BTREEMODE1 option
to ON or OFF and set wildcard character for the database
(permanent). Refer to chapter 11, "B-Tree Indices" for the
qualifier layout.
Mode 15: Enable B-Tree wildcard search for DBFIND mode 1, X and
U types, for the master data set's key item and its
corresponding search items in details, if the key item has a
B-Tree index. In other words, turn on the BTREEMODE1
flag for the current database open. The first byte of the
qualifier is examined. If it is null or blank, then the
current wildcard character is not changed. If it is in the
ASCII range (33...126), then the wildcard character is
changed to that value for the current DBOPEN. If the
qualifier is any other value, DBCONTROL returns an error.
Affects only the current database open. It needs to be done
once per database and remains activated until the
database is closed or the application terminates. This
mode allows you to perform B-Tree searches on ASCII
types without making application changes.
Mode 16: Disable B-Tree wildcard search for DBFIND mode 1
regardless of the existence of a B-Tree index. That is, turn
off the BTREEMODE1 flag for the current database open.
The qualifier is ignored, and BTREEMODE 1 is turned off.
Affects the current database open only. It needs to be done
once per database and remains activated until the
database is closed or the application terminates.
Mode 18: Enables the XM to return a warning when the dynamic
transaction exceeds the 28MB threshold. The maximum
dynamic transaction size of a given process is 32 MB.
However, if a process hit this limit, the process will be
aborted by the transaction manager and the transaction
will be rolled back. In order to give user a chance to save
the transaction, user can call DBCONTROL mode 18
before the transaction started. If the flag set and the
transaction size hit 28 MB, an error will return to the
program. User then can choose either commit the
transaction (call DBXEND) or abort the transaction (call
DBXUNDO). The error number is –1025, which may be
returned by DBDELTE, DBPUT and DBUPDATE.
Mode 19: Disables the XM to return a warning when the dynamic
transaction exceeds the 28MB threshold. Unlike
DBCONTROL mode 18, DBCONTROL mode 19 can be
called within a dynamic transaction.
Mode 20: Allows the program to overwrite the DBUTIL
‘OLDINFOLIMITS’ setting. DBINFO mode 103 returns
data items in a database; DBINFO mode 203 returns data
sets in a database; DBINFO mode 204 returns all data