Skip to content

DBTWINCONTROL Data Set

The information in this section explains the DBTWINCONTROL data set as mentioned in Configure the Primary Database.

About DBTWINCONTROL Data Set

DBTWINCONTROL contains audit locations that are maintained on a structure-by-structure basis. The DBTWINCONTROL data set will reside in both the primary and the secondary databases, although the DBTWINCONTROL data set is always empty in the primary database. In the secondary database, it can contain a record for each data set you clone from the primary database to the secondary database.

DBTWINCONTROL keeps track of the respective audit locations for each data set cloned from the primary database. Typically, one global record keeps track of all of the data sets that are in normal mode (indicated by the number 2 in DBTWIN-MODE) and up-to-date.

Data sets that are not in normal mode have their own record that reflects their mode (for example, 3 for reorganization or 4 for purged). This situation is rare, however. The majority of the time, DBTWINCONTROL will have only the global record. (For an explanation of normal and other modes, see the Databridge Host Administrator’s Guide .)


DASDL source code for the DBTWINCONTROL data set

        % DATABRIDGE TWIN ADDITIONS

DBTWINCONTROL DATASET ( DBTWIN-STRNUM REAL (S11) INITIALVALUE 0; DBTWIN-RECTYPE REAL (S11) INITIALVALUE 0; DBTWIN-AFN REAL (S11) INITIALVALUE 0; DBTWIN-ABSN REAL (S11) INITIALVALUE 0; DBTWIN-SEG REAL (S11) INITIALVALUE 0; DBTWIN-INX REAL (S11) INITIALVALUE 0; DBTWIN-TIME REAL INITIALVALUE 0; DBTWIN-MODE REAL (S11) INITIALVALUE 0; DBTWIN-FORMAT-LVL REAL (S11) INITIALVALUE 0; DBTWIN-TABLE-LVL REAL (S11) INITIALVALUE 0; DBTWIN-ITEM-COUNT REAL (S11) INITIALVALUE 0; DBTWIN-OPTIONS REAL (S11) INITIALVALUE 0; % added 6.5 DBTWIN-HOST-INFO REAL (S11) INITIALVALUE 0; % added 6.5 ), BLOCKSIZE = 22 SEGMENTS; % for VSS-3 compatibility

DBTWINSET SET OF DBTWINCONTROL KEY (DBTWIN-STRNUM, DBTWIN-RECTYPE) NO DUPLICATES; ```