Databridge Client Control Tables
This chapter describes the six Client control tables and the properties in each table that can be customized. For best results, use the Administrative Console's Customize command and other commands to customize your Client control tables.
Control tables do not contain replicated DMSII data. To store replicated data, the relational database uses data tables, which are created using information from the control tables. The control tables hold the layout information of the DMSII database (from the DMSII DESCRIPTION file) and the layout of the corresponding relational database tables. Each relational database has one set of Client control tables that includes the following tables: DATASOURCES, DATASETS, DATATABLES, DMS_ITEMS, DATAITEMS and AF_STATS. The AF_STATS table, which was added in version 7.0, is used to optionally store the audit file statistics that allow users to look at the audit file processing statistics for the last 9999 audit files.
The Databridge Client uses several columns of the control tables to determine how DMSII database objects are represented in the relational database layout. While Databridge makes many of these decisions, some properties can be customized by using the Administrative Console's Customize command or user scripts. For example, you can rename columns, combine like items, and flatten OCCURS.
For instructions on backing up the Client control tables, see Backing Up and Maintaining Client Control Tables.
DATASOURCES Client Control Table
The DATASOURCES Client control table contains the data sources defined for the Databridge Client. Each data source represents both a connection to a Databridge Server on the MCP (or Enterprise Server) and a DMSII database. You can define more than one data source within the DATASOURCES Client control table as long as each data source name is unique. All of the data sources you define within the DATASOURCES table apply to one relational database.
Note
Do not modify Client control tables directly. Instead, use the commands in the Administrative Console's Settings menu to customize data sources.
The following table contains descriptions of each column, in the order in which it appears in the DATASOURCES table.
Column | Description |
---|---|
data_source | This value is the name you give the data source when you use the Databridge Client define command. The name can be a maximum of 30 characters, and it must match one of the following:
|
hostname | This column specifies the host name or IP address of the Databridge Server. |
hostport | This column specifies the TCP/IP port number used to connect to the Databridge Server. |
hostprot | Reserved |
stop_time | This column specifies the start of the Databridge Client blackout period expressed as an integer value representing 24-hour time (hhmm format). At a few key points during execution, the Databridge command-line Client (dbutility) tests this column to determine whether or not it should continue processing. The configuration file parameter controlled_execution enables this feature while the parameter min_check_time specifies the minimum delay time (for example, a typical time value may be 5 minutes) between checks of stop_time . The program checks at the start of a process or clone command and after commits, provided enough time has elapsed since the last check.NOTE: Service-based operations ignore the value of this column, as the service takes over this functionality. |
end_stop_time | This column specifies the end of the blackout period for the Databridge command-line Client (dbutility). It is expressed as an integer value representing 24-hour time (hhmm format). For example, if stop_time is 2000 and end_stop_time is 200, the Databridge Client refrains from running between 8:00 p.m. and 2:00 a.m.NOTE: Service-based operations ignore the value of this column, as the service takes over this functionality. |
update_level | This column contains the update level of the DMSII database at the time the last define or redefine command was run. |
status_bits | This column contains a set of bits that the Databridge Client sets. Some of these bits contain state information that is useful. Modifying this column can disrupt the Client operations. The following list covers the columns in the DATASOURCES control table that can be modified in user scripts. Bit and Description
|
tab_name_prefix | This column holds an optional one to eight-character prefix which is added to all table names in the data source. This prefix, which you must supply, allows you to distinguish between identically named data sets in multiple data sources, without having the define and redefine commands rename tables to eliminate name conflicts. The configuration file parameter use_column_prefixes extends this prefix to all column names. |
data_source_id | This column allows you to provide a numeric identifier to distinguish records that belong to a particular data source from other records in a multi-source environment using a user script, or a relational database query tool. In addition, you must set the external_columns column to 128 or 2048 for all the data sets belonging to this data source. |
last_run_status | This column holds the exit code of the last Databridge Client process or clone command that was run. When the exit status is not available (such as when the Databridge Client is running or abended), the entry has a value of 9999. |
stop_afn | This column specifies the AFN value when the configuration file parameter stop_after_given_afn is enabled.NOTE: Service-based operations ignore the value of this column, as the prefered way of doing this is use a stopper program combined with the stop_task parameter in the Client. |
af_origin | This column specifies the origin of the current audit file being processed. The following values are defined for this column:
|
server_version | This column indicates the version of DBServer last used by the Client. |
engine_version | This column indicates the version of Databridge Engine last used by the Client. |
support_version | This column indicates the version of the Support Library last used by the Client. |
dbe_version | This column indicates the version of Enterprise Server last used by the Databridge Client. |
client_version | This column indicates the version of the last dbutility or DBClient that was run for this data source |
cfgsrvr_version | This column indicates the version of DBClntCfgServer that was last used by the service to access the data source. |
service_version | This column indicates the version of the DBClntControl service that launched a Client run for the data source. |
old_update_level | This column holds the previous value of update level when running when a redefine command is run. This value is used to name the reorg scripts that contain the DMSII database’s update level. |
db_timestamp | This column contains the timestamp of the DMSII database, which is the time when the database was created. It is used by the Client to verify that the Client is using the same database as it originally was. If this column is set to zeroes, then this test is not performed. CAUTION: This column contains a DMSII TIME(6) value, which is binary and 6-bytes long. For SQL Server, set db_timestamp=0. For Oracle, set db_timestamp ='000000000000'. |
reader_info | This column contains the name and version of the reader used to read audit files (or flat files in the case of a FileXtract data source). |
dms_dbase_name | This column contains the name of the DMSII database, which is not always the same as the data source name. |
Note
The data source CTLTAB_VERSION in the DATASOURCES table is a special entry created by the Databridge Client. It indicates the version of the Client control tables. Do not try to process this data source, and do not remove it from the table.
DATASETS Client Control Table
The DATASETS table contains information about each DMSII data set as permitted by the Databridge host support library filters. The DATASETS table contains state information for each data set visible to the Client, including the current replication phase of the data set. When the data has been successfully extracted, this table includes the location in the audit trail from which the last group of updates for the data set were read, including the audit file number, the audit block sequence number, the segment number, and the index that identify the physical location of the block in the audit file, and a timestamp.
Note
The Service Pack 1 Oracle Client uses the data type TIMESTAMP, which supports fractions of seconds, for the audit_ts
column. To use this data type instead of DATE, set the sql_type
to 20 and specify the number of fractional digits desired using the sql_length
column for the user column. You can use the DATETIME2 data type, which also has a sql_type
of 20, for these columns in the SQL Server Client and use the sql_length
to specify the number of fractional digits desired. TIMESTAMP supports 0 to 9 fractional digits, while DATETIME2 support 0 to 7.
The active
column of the DATASETS table controls the selection of all
tables mapped from a DMSII data set. (The SQL statements in your user
scripts use the active
column in this table to specify data sets you do
not want to clone.) If you use the DATASETS table to disable cloning for
a data set, you disable cloning for all tables related to that data set.
For example, one DMSII data set with a nested OCCURS item can generate
multiple tables. If you do not want to clone any of these tables, use
the active
column in the DATASETS Client control table to turn off
cloning. For more information on selectively cloning data sets, Tips for More Efficient Cloning.
The following table contains descriptions of each column in the DATASETS
Client control table. Included is the abbreviated column name that the
display
command writes to the log file.
Column name | Display | Description |
---|---|---|
data_source | This column contains the name of the data source that identifies the DMSII database from which the data was taken. The name must match one of the following:
|
|
dataset_name | ds |
This column contains the name of the DMSII data set. |
rectype | /type |
This column, which is zero for all fixed-format data sets, contains the record type of a DMSII variable-format data set as follows: Record Type and Description
|
set_name | set |
This column contains the name of the DMSII set that Databridge Engine uses as an index source for tables mapped from the data set. The names "aa_set", "user_set", and "pk_set" are special set names that the Databridge Client uses when a DMSII set is not available. The name "aa_set" indicates that AA Values (or RSNs) will be used as the source for the index. The name "user_set" indicates that the set is user-defined. The name "pk_set" indicates that the set is defined in GenFormat using the PRIMARY KEY statement. |
active | A |
During a define or redefine command, this column determines whether or not a data set is mapped. During a process command, the value of this column determines if the data set is to be selected for cloning or updating. The default, 1, indicates that the data set will be mapped (cloned or updated). A value of 0 indicates that the data set will not be mapped (cloned or updated). The define and redefine commands change the value in the active column to 0 for the global data set, the restart data set, and remaps (unless the base structure is filtered out) in the DMSII database.NOTE: When you change the DATASETS active column value to 0 to disable cloning, all tables related to the data set are disabled. For example, if a DMSII data set is represented by three relational database tables, none of the three relational database tables will be cloned. |
strnum | ST# |
This column contains the DMSII data set's structure number. |
audit_filenum | AFN |
This column contains the current DMSII audit file number. DMSII audit files are created and stored on the host; they contain a record of all updates to the DMSII database and are named as follows: databasename/AUDITnnnn where databasename is the name of the DMSII database, AUDIT is a literal, and nnnn is the AFN (audit file number) whose value is a number between 1 and 9999. Before you run a process command to clone a DMSII database, the audit file number (and all the other audit file location information) is zero; subsequent process commands fill these records with the ending audit file location. |
audit_block | ABSN |
This column contains the audit block serial number in the audit file. Because DMSII uses 32-bit audit block serial numbers, the data type for this column is binary (raw in Oracle). All displays in the log file show this value as a 10-digit unsigned number. If you access this column via a relational database query tool, the hexadecimal value appears instead, as the column's data type is binary(6) in SQL Server and raw(6) in Oracle). |
audit_seg | SEG |
This column contains the segment number within the audit file. |
audit_inx | INX |
This column contains the index within the audit file segment. |
audit_ts | Time Stamp |
This column contains the audit file timestamp represented as a relational database date/time (datetime2 for the SQL Server Client and timestamp for the Oracle and Kafka Clients). |
ds_mode | M |
There are a few instances where you may need to change the mode. The ds_mode value provides the following information about the data set:Value and Description
|
host_fmtlevel | This column contains the format level as seen by the host. The value is the update level received from Databridge Engine in the last STATEINFO record. | |
client_fmtlevel | FMT |
This column contains the format level as seen by the Databridge Client. The value is determined by the define and redefine commands. Typically, the host and Client format levels are the same until a DMSII reorganization is detected. |
recsz_bytes | RSZ |
This column contains the size of the record in bytes. |
parent_strnum | P# |
This column contains the parent structure number. This column is used for embedded data set information. |
num_children | #C |
This column contains the number of child structures for the parent structure. This column is used for embedded data set information. |
base_strnum | B# |
This column contains the base structure number. If the value in this column is not equal to the value in the strnum column, this data set is a remap of the data set whose structure number is base_strnum. |
subtype | ST |
This column contains the structure subtype of the DMSII data set: Value and Description
|
in_sync | The in_sync column tracks data sets whose stateinfo is synchronized with the stateinfo stored in the Global_DataSet row for the data source in the DATASETS Client control table.Global_DataSet is a dummy data set that holds the common stateinfo for data sets whose ds_mode is 2. When the Databridge Client is finished updating, the stateinfo in the Global_DataSet is copied to all data sets that need to be updated with the stateinfo. Values in this column indicate the following: Value and Description
|
|
item_count | ICNT |
The value in this column represents the number of items in the DMSII data set and is used by Databridge Engine to detect filler substitutions and changes in DBGenFormat. |
audit_time6 | The value in the audit_time6 column is the DMSII timestamp stored as 6 binary characters. The Client uses this value when it sends state information (stateinfo) to Databridge Engine at the beginning of a process command. The Client does not use the value in the audit_ts column, as it is not accurate enough to use in communications with the Databridge Engine. Instead, the original DMSII timestamp is used. It is much more accurate and has a much smaller granularity than relational database date/time values.CAUTION: When you enter values for the stateinfo, you must set the audit_time6 column to 0 because the Databridge Engine uses this value to detect DMSII rollbacks. If the value of the timestamp is 0, Databridge Engine bypasses this test.For SQL Server, set audit_time6=0. For Oracle, set audit_time6='000000000000'. |
|
host_info | The information in the host_info column is provided by the Databridge Engine during data extraction. It enables the Databridge Client to recover fixups if the command is aborted. This information is stored as 6 binary characters. |
|
ds_options | OP |
The following bits (which can be set through customization user scripts or by using the Administrative Console's Customize command) control how data sets are mapped: Bit and Description
|
changes | These bits are used by the redefine and the Administrative Console's Customize command to indicate the changes that the command detected.Bit and Description
|
|
status_bits | SB |
The following bits are used by this column: Bit and Description
|
misc_flags | MISC |
This column contains an integer that holds a series of flags set by Databridge to reflect some characteristics of the individual data sets. NOTE: Do not change these bits. Bit and Description
|
max_records | MAXRECS |
This column contains an integer that holds the maximum row count of the data set as estimated by the Databridge Engine. This is the exact number that appears in DBLister reports. The Databridge Engine computes this estimate by dividing the file size by the record size. This value is very inaccurate in the case of variable-format data sets because it is impossible to determine how many records of a given type exist in the data set without doing a full scan of the data set. |
virtual_ds_num | VDS |
This column contains an integer value that holds the structure number of the virtual data set to which the DMSII data set is linked. This column is used by the parent data set to point to the associated virtual data set. When more than one virtual data set is derived from a real data set, these data sets are chained together using this column. |
real_ds_num | RDS/type NOTE: This display name is combined with the real_ds_rectype value. |
This column contains an integer that holds the structure number of the primary real data set from which the virtual data set is derived. When more than one virtual data set is derived from a real data set, these data sets all point back to the real data set through their real_ds_num column. These real data sets are chained together, starting with the primary data set, by using the otherwise unused real_ds_num columns of the actual data sets. |
real_ds_rectype | The integer in this column represents the record type of the variable-format data set. This information serves to further identify a variable-format data set when it is cloned as a virtual. In addition, the variable-format data set is linked to the virtual data set through the virtual_ds_num and real_ds_num columns. |
|
external_columns | EXTC |
This column contains an integer value that determines which predefined non-DMSII columns are automatically added to this data set. For a description of these bits, see Numeric Date and Time in Non-Contiguous Columns. |
ds_user_bmask | This column, which shadows the ds_options column, contains a bit mask that represents the columns in ds_options that were customized. This column is used by the redefine or the Administrative Console's Customize command to restore the portion of ds_options that has been customized while leaving the remaining bits intact. |
|
links_sz_bytes | This column contains the size of the link data, in bytes. Link data is no longer stored in the actual record, instead the record is extended by the size of the link data where the link data is placed during data extraction. These areas are not necessarily contiguous in the DMSII record; the DMSII offsets have been adjusted to make them to look contiguous in the Client. | |
links_offset | This column is used by the Client to determine where the link area for the record starts. | |
vp_link_offset | Variable format data sets have links in both the fixed part and the variable part, causing the Client to receive two LINK_AI records. This offset value indicates where the second part of the links area starts. By comparing the offset received from the Engine, the Client can tell where the link data should be stored. | |
item_name_prefix | This column is used by the Client to automatically strip fixed size prefixes from data item names. One frequently finds DMSII databases where the data set names (or a shortened form of these names) is used as a prefix for every item name. The Client has the ability to get rid of these prefixes without requiring any complex actions other than putting the prefix to be stripped in this column, without the trailing dash. | |
rows_extracted | This column is used by the Client to save the number of DMSII records that were received during the data extraction phase. | |
client_discards | This column, which is currently only used by the Flat File Client, is used to record the number of records discarded during data extraction phase. | |
extract_priority | This column is used to affect the order in which data sets are extracted. The data extraction is now ordered by extract_priority (highest value first) and strnum (lowest value first). By setting this column to a positive number you can change the order in which data sets are extracted. |
|
dflt_options | This column is used to keep track of the initial state of the ds_options bits before any customizations are performed. It allows the Client to clear the ds_user_bmask bits that were set by customizations that were later undone. |
DATATABLES Client Control Table
The DATATABLES Client control table is used primarily to disable cloning for one or more of the secondary tables mapped from one DMSII data set. For example, a DMSII data set with several OCCURS items generates multiple relational database tables. If you do not want to clone particular secondary tables, use the active column in the DATATABLES Client control table to turn off cloning for those secondary tables.
The DATATABLES Client control table contains the entries for each of the
relational database tables mapped from the DMSII data sets listed in the
DATASETS table. These entries include relational database information
rather than DMSII information. For example, the DMSII data set name (in
the column named dataset_name
) is listed along with the corresponding
relational database table name (in the column named table_name
). Since a
data set can be mapped to several relational database tables (such as
when a data set contains OCCURS items), the prim_table
column is used to
identify the primary table.
The following table contains descriptions of each column in the
DATATABLES Client control table. Included is the abbreviated column name
that the display
command or the Administrative Console's Log Control Tables
command that can be found in the data source's Advanced menu.
Column | Display | Description |
---|---|---|
data_source | This column contains the name of the SOURCE name that identifies the DMSII database from which this data was taken. The data source name is defined when you run a define command. It must match the data source name in the DBServer control file on the host. |
|
dataset_name | ds |
This column contains the name of the DMSII data set from which this table was mapped. |
table_name | table name |
This column contains the name of the table as it appears in the relational database. DMSII data sets correspond to relational tables. |
index_name | index |
This column contains the name of the relational database index that is created for fast access to this table. If the table has no index, this column is blank. This index is created via the Databridge Client script named script.index.tablename . The value in this column is the index name used in the CREATE INDEX SQL statement. |
rectype | /type |
This column, which is zero for all tables mapped from fixed-format data sets, contains the record type of a DMSII variable-format data set. Record Type and Description
|
occurs_level | occ |
This column contains the nesting level of OCCURS in the DMSII database. For example, an OCCURS table created from another OCCURS table has an occurs_level of 2. The original OCCURS table has an occurs_level of 1. NOTE: The Client does not support occurs levels that are greater than 2. |
table_number | T# |
This number is used by the SQLLoader and bcp scripts. The Databridge Client assigns consecutive numbers to the tables it defines for a data source during the define command. Each table within a data source has a unique table number, and the numbers begin with 1. The redefine command and the Administrative Console's Customize* command assign numbers to new tables starting with the highest table number plus 1. Existing tables get their old table numbers restored. |
active | A |
The value of this column determines whether or not a table is cloned during a process or clone command. The default is 1, which indicates that the table will be cloned. If you change this value to 0, the table is not cloned. To disable cloning for an entire set of tables related to a DMSII data set, see DATASETS Client Control Table. |
create_suffix | suf |
The create_suffix column enables you to specify a value that identifies the index of the create_suffix string defined in the configuration file. For more information, see create_table_suffix in Generate Command Parameters. |
index_suffix | The index_suffix column enables you to specify a value that identifies the index of the index_suffix string defined in the configuration file. For more information, see create_index_ suffix in Generate Command Parameters. |
|
original_name | original_name | The Databridge Client saves the original name of the renamed tables in this column so they can be identified during redefine and the Administrative Console's Customize commands. |
prim_table | P |
This column indicates whether or not this is a primary table. |
dt_options | OP |
The dt_options column uses the following bits:Bit and Description
|
changes | These bits are used by the redefine command and the Administrative Console's Customize command.1: CHG_new - New entry reorganize command uses this bit as an indication that it must drop the index for the table and recreate it.redefine command or the Administrative Console's Customize command. The reorganize command deletes this file once the new index is successfully createdredefine command ot the Administrative Console's Customize command sets this bit when they find a new history table. The reorganize command then can create these tables and we can continue processing without re-cloning the data set. |
|
update_count | The update_count column represents the smoothed average number of updates for the table over the specified period of time. |
|
update_interval | This update_interval column represent the period of time (in milliseconds) that the update_count spans.The multi-threaded update code uses the update_count column to balance the thread load. The update_interval column will start out as 0 and increase until it reaches the value representing one hour, after which it never changes, as the average is smoothed to reflect the number of updates for each table over the last hour.The update_count and update_interval columns were added to hold the table update statistics. |
|
dt_user_bmask | This column, which shadows the dt_options column, contains a bit mask that represent customized columns in dt_options . This column is used by the redefine and the Administrative Console's Customize commands to restore the portion of dt_options that has been customized while leaving the remaining bits intact. |
|
dflt_options | This column is used to keep track of the initial state of the dt_options bits before any customizations are performed. It allows the Client to clear the dt_user_bmask bit that were set by customizations that were later undone. |
DMS_ITEMS Client Control Table
The DMS_ITEMS table contains entries for each DMSII item that is visible to the Client after column filtering in the Support Library on the host. The DMS_ITEMS table also contains the name of the DMSII data set of which the item is a member, as well as other DMSII layout information.
The following table contains descriptions of each column in the DMS_ITEMS Client control table. Included is the abbreviated column name
that the display
command writes to the log file.
Column | Display | Description |
---|---|---|
data_source | This column contains the name of the data source that identifies the DMSII database from which this data was taken. | |
dataset_name | ds |
This column contains the name of the data set in the DMSII database to which this DMSII item belongs. |
rectype | /type |
This column, which is zero for all tables mapped from fixed-format data sets, contains the record type of a DMSII variable-format data set. For more information on variable-format data sets, see Variable-Format Data Sets. Record Type and Description
|
dms_item_name | item_name | This column contains the name of the data item for the listed data set. This column is limited to 128 characters. |
active | A |
This column specifies whether or not the item will be mapped. A value of 1 (default) indicates that the item will be mapped (if this is possible) to an entry in the DATAITEMS Client control table. A value of 0 indicates that the item will not be mapped. The define and redefine commands and the Administrative Console's Customize command change the value in the active column to 0 for the global database unless you set the active column to True in the corresponding entry in the DATASETS control table. |
item_key | K |
This column contains a numeric value which specifies the order of the item in the DMSII set (1, 2, 3, and so on). If the item is not a key, this value is 0. NOTE: You can edit this column to create a composite key or change the order of the keys in the index. See Creating Indexes for Tables. |
dms_item_number | # |
This column contains the item number, which indicates the relative position of the item in the original DMSII record. |
dms_parent_item | P# |
This column contains the dms_item_number of the parent item for an item that is a member of a GROUP item. For example, if dms_item_number 12 is a DMSII GROUP containing items 13, 14, 15, and 16, the dms_parent_item of the last four items will be 12. |
dms_item_type | T |
Values 10, 14, 21, 27, 29, and 30 through 37 are DMSII data types. This column indicates the type of data item, as follows: Type and Description
|
dms_decl_length | DL |
This column contains the user-declared length of the item in the DMSII DASDL. This length changes according to the data item type selected (alpha, boolean, field, number, or real). |
dms_scale | S |
This column contains the numeric scaling factor, which is the number of digits to the right of the decimal point, if any. |
dms_offset | O |
This column contains the item’s offset value which indicates where, within the DMSII record, this item begins. This is the location Databridge uses to extract data from DMSII records. For example, in a 400-byte record with an offset of 200, the first 100 bytes are used by other items. This number is in digit size, which is equal to one-half of a byte (four bits). |
dms_length | L |
This number is the size, in digits, of the data. Digit size is equal to one-half of a byte (four bits). |
dms_signed | s |
This column contains a boolean value specifying whether the item is signed or unsigned as follows: 0 = unsigned and 1 = signed. |
dms_num_occurs | #O |
This column indicates the number of times this data item occurs (is present) within the data set. If the item does not have an OCCURS clause, this value is 0. |
dms_num_dims | #D |
This column contains the number of dimensions for the data item, which is the number of subscripts required to access the item. |
dms_depends_num | dep |
This column contains the dms_item_number value of the item that specifies the number of occurrences in use for an item with an OCCURS DEPENDING ON clause. |
dms_subtype | ST |
For items mapped to relational database date types, this column contains the format of the date as it is stored in the DMSII database. These are not actual DMSII data types; rather, they represent the formats of dates that might be stored as a DMSII GROUP, a NUMBER, or an ALPHA item. For non-DMSII columns this column identifies the type of the non-DMSII column. For split data items, this column determines the offset of the split. This column is also used to identify columns in tables that pose unique characteristics. For example, MISER databases use this column to identify special columns in history virtual data sets which indicate if this is a resident history record. |
di_options | OPTIONS |
The following bits, which can be set through data set mapping customization user scripts or the Administrative Console's Customize command, enable you to control how the item is mapped. Bit and Description
|
dms_concat_num | Using this column, the Client supports concatenating two non-contiguous columns of the same data type (that is, treat two columns as one). You can concatenate two ALPHA items, or two unsigned NUMBER items. You can also use the Client to store a numeric item as ALPHA and then use the item in a concatenation. You can also store an ALPHA item that contains numeric data as an unsigned NUMBER and concatenate it with an unsigned number. Concatenation is also supported for unsigned numeric columns that represent a date and a time. The date can be any of the supported date formats, while the time must be a NUMBER(6) containing the time as HHMISS. The combined NUMBER can then be interpreted by the Client as date/time. For an example of the layout scripts, see Concatenating Two Items and Cloning the Result as a Date/Time. |
|
changes | These bits are used by the Client Configurator (not by the redefine command).
|
|
dms_link_ds_num | lnk |
This column holds the structure number of the data set to which a LINK item points. Thus a nonzero value in this column identifies a DMSII LINK. Links that use AA Values have a dms_item_type value of (10). |
di_user_bmask | This column, which shadows the di_options column, contains a bit mask that represents the bits in di_options that were customized. This column is used by the redefine command to restore the portion of di_options that has been customized while leaving the remaining bits intact. |
|
redef_item_type | This column is used by the Client to redefine a DMSII GROUP, consisting of items that have the same data types (e.g. a GROUP of 4 unsigned NUMBER items), as a single item of the given type. | |
redef_decl_len | This column is used by the Client to specify the resulting length when redefining a DMSII GROUP consisting of items that have the same data types. | |
di_options2 | The following bits, which can be set through data set mapping customization user scripts, enable you to control how the item is mapped. Bit and Description
|
|
da_user_bmask2 | This column, which shadows the di_options2 column, contains a bit mask that represents the bits in di_options2 that were customized. This column is used by the redefine and the Administrative Console's Customize commands to restore the portion of di_options2 that have been customized while leaving the remaining bits intact. |
|
dflt_options | This column is used to keep track of the initial state of the di_options bits before any customizations are performed. It allows the Client to clear the di_user_bmask bits that were set by customizations that were later undone. |
|
dflt_options2 | This column is used to keep track of the initial state of the di_options2 bits before any customizations are performed. It allows the Client to clear the di_user_bmask2 bits that were set by customizations that were later undone. |
DATAITEMS Client Control Table
This table duplicates the DMSII information in the DMS_ITEMS table and
contains the layout information for the tables in the relational
database. This table is not directly linked to the DATASETS table.
Instead, it is linked to the DATATABLES Client control table using the
table_name
column as a foreign key.
You can use the DATAITEMS Client control table to specify the data items you do not want to clone by setting their corresponding active column to 0. However, we recommend that you accomplish this by setting the active column to 0 in the DMS_ITEMS table. Using the DATAITEMS table can lead to unnecessary table splits. Unused columns cause the column count and record size computations to be too high.
If data set mapping is already complete, this table can be temporarily
used to disable a new column after a DMSII reorganization to avoid
recloning. (This is done automatically if the configuration file
parameter suppress_new_columns
is set to True.)
If you want to disable cloning for every data item in a data set (every column in a table), disable cloning for the data set instead of disabling cloning for each individual data item. For details, see DATATABLES Client Control Table.
The following table contains descriptions of each column in the
DATAITEMS Client control table. Included is the abbreviated column name
that the display
command writes to the log file.
Column | Display | Description |
---|---|---|
data_source | This column contains the name of the data source that identifies the DMSII database from which the data was taken. | |
table_name | table |
This column contains the name of the table in the relational database to which this item belongs. |
item_number | # |
This column contains an internal number that gives each item within a table a unique number. Numbers are assigned consecutively in increments of 10, starting with 10, making it easier to change the order of items using data table customization user scripts. |
item_name | item_name |
This column contains the name of the item (column) in the relational database table. Typically, this is the same as the lowercase form of the DMSII item name with all dashes changed to underscores. To modify, see Appendix D: Customization Scripts. |
active | A |
The value in this column specifies whether or not this data item will be cloned. The default is 1, which indicates that the data item will be cloned. 0 indicates that the data item will not be cloned. The define , redefine and the Administrative Console's Customize commands change the value in the active column to 0 if the data set is the global dataset, unless the active column is set to true in the corresponding DMS_ITEMS entry.NOTE: If the active value for the data set to which this item belongs is 0 (off), this item will not be cloned even if its active value is 1 (on). |
item_key | iK |
This column contains a numeric value specifying the order of the item in the DMSII set (10, 20, 30, and so on). You can modify this column to make it part of a composite key or change the order of the keys in the index. For details, see Creating Indexes for Tables. If the item is not a key, the value is zero (0). |
virtual_key | VK |
Do not change this value. This column contains a boolean value specifying if this item is a virtual key; however, it is created only for mapping DMSII items with unflattened OCCURS clauses. When an item is a virtual key, the corresponding value for item_key is a positive number that is one greater than the item_key value of the last key for the data set. The virtual key is not a DMSII key -- its value in the data table is the occurrence number in the occurs clause (starting at 1). |
dms_item_number | I# |
This column contains the item number, which indicates the relative position of the item in the original DMSII record. |
dms_parent_item | P# |
This column contains the dms_item_number of the parent item for an item that is a member of a GROUP item. For example, if dms_item_number 12 is a DMSII GROUP containing items 13, 14, 15, and 16, the dms_parent_item columns of the last four items will be 12. This column contains a copy of the dms_subtype in the DMS_ITEMS table. |
dms_item_type | TYP |
For a description of this column, see "dms_item_type" in DMS_ITEMS Client Control Table. In addition to the types defined in DMS_ITEMS, this column contains the following values: Type and Description
|
dms_decl_length | DL |
This column contains the user-declared length of the item in the DMSII DASDL. This length changes according to the data item type selected (alpha, boolean, field, number, or real). |
dms_scale | SC |
This column contains the numeric scaling factor, which is the number of digits to the right of the decimal place, if any. |
dms_offset | OFF |
This column contains the item’s offset value which indicates where, within the DMSII record, this item begins. This is the location Databridge uses to extract data from DMSII records. For example, in a 400-byte record with an offset of 200, the first 100 bytes are used by other items. This number is in digit size, which is equal to one-half of a byte (four bits). |
dms_length | LEN |
This number is the digit size of the data. Digit size is equal to one-half of a byte (four bits). |
dms_signed | s |
This column contains a Boolean value specifying whether the item is signed or unsigned as follows: 0 = unsigned and 1 = signed. |
dms_num_occurs | OCC |
This column indicates the number of times this data item occurs (is present) within the data set. If the item does not have an OCCURS clause, this value is 0. |
sql_type | TY |
This column contains the relational database data type that corresponds to the DMSII data types. See DMSII and Relational Database Data Types. |
sql_length | LEN |
If the data type for the column has a length specification in the relational database, this column specifies the length to be used. For example, in the case of char(5) the sql_length is 5.Conversely, if the data type for the column does not have a length specification in the relational database (for example, int in SQL Server or date in Oracle) this column has a value of 0. |
occurs_level | OLV |
This column contains the nesting level of OCCURS in the DMSII database. For example, an OCCURS table created from an in item with an OCCURS clause contained in in a GROUP with an OCCURS clause has an occurs_level of 2 . The original OCCURS table has an occurs_level of 1.NOTE: The Client does not support nested OCCURS that are more than 2 levels deep. |
dms_subtype | STY |
For items mapped to relational database date types, this column contains the format of the date in the DMSII database. These are not actual DMSII date types; rather, they represent the formats of dates that might be stored as a DMSII GROUP, a NUMBER, or an ALPHA item. For non-DMSII columns this column identifies the type of the non-DMSII column. For split items it represents the offset of the split. |
sql_scale | SC |
This column contains a copy of the dms_scale that you can edit. This value is used in the relational database to specify the scale for columns of whose data type is DECIMAL(p,s) on SQL Server or NUMBER(p,s) on Oracle. |
dms_depends_num | dep |
This column contains the dms_item_number of the item that specifies the number of occurrences in use for an item with an OCCURS DEPENDING ON clause. |
da_options | OP |
The following bits, which you can set through data table customization user scripts or the Administrative Console's Customize command, allow you to specify additional properties of the data items: Bit and Description
|
changes | These bits are used by the redefine and the Administrative Console's Customize commands.
|
|
dms_link_ds_num | This column holds the structure number of the data set to which a LINK item points. Thus a nonzero value in this column identifies a DMSII LINK. Links that use AA Values have a dms_item_type value of (10). | |
dms_concat_num | This column is a copy of the DMS_ITEMS column of the same name and is automatically set by the define and redefine commands since the DMS_ITEMS table is not loaded during a process or clone command. Do not modify this column in your user scripts. |
|
da_user_bmask | This column, which shadows the da_options column, contains a bit mask that represents the columns in da_options that were customized. This column is used by the redefine and the the Administrative Console's Customize commands to restore the portion of da_options bits that has been customized while leaving the remaining bits intact. |
|
masking_info | This column is used by the SQL Server Client to do data masking. This integer value contains the masking function type (none, default, email, random, partial) and the index of the corresponding parameter data for masking function that have parameters. The define command create entries with default mask for columns that have a datamask specification in DMSII DASDL. You can then change the masking type using the Administrative Console's Customize command. |
|
dflt_options | This column is used to keep track of the initial state of the da_options bits before any customizations are performed. It allows the Client to clear the da_user_bmask bits that were set by customizations that were later undone. |
AF_STATS Client Control Table
This table is used to hold the audit file statistics for the last 9999 audit files processed by the client.
Column | Description |
---|---|
data_source | This column contains the name of the data source to which the record belongs. |
audit_filenum | The audit file number (1 to 9999). |
no_stat_available | This column is set by Client to while processing an audit file to indicate that the record does not contain any statistics. |
audit_start_time | First timestamp in the audit file (datetime2(7) for SQL Server and date for Oracle). |
audit_end_time | Last time stamp in the audit file (datetime2(7) for SQL Server and date for Oracle). |
client_start_time | Time when the Client first started processing the audit file (datetime2(7) for SQL Server and date for Oracle). |
client_end_time | Time when the Client finished processing the audit file (datetime2(7) for SQL Server and date for Oracle). |
n_threads | Number of threads configured in the Client |
elapsed | Elapsed time (in milliseconds) processing the audit file. This is not always equal to client_end_time - client_start_time as the audit is sometimes processed in multiple Client runs. |
dms_rec_count | Number of DMSII records received. |
sql_op_count | Number of SQL updates executed. |
sql_rb_op_count | Number of rolled back SQL updates. |
sql_suppressed | Number of SQL updates that were suppressed because there were no changes in the BI and AI images for the columns involved in the update. |
sql_filtered | Number of SQL updates that were eliminated by occurs table row filtering. |
recs_discarded | Count of discarded records. |
recs_in_error | Count of records in error. |
bytes_received | Number of DMSII data bytes received from the server. |
total_bytes_received | Number of DMSII data and protocol overhead bytes received from the server. |
bi_bytes_received | Number of MODIFY_BI data bytes received from the server. |
create_count | Number of CREATE records received from the server. |
delete_count | Number of DELETE records received from the server. |
modify_count | Number of MODIFY records received from the server. |
modify_bi_count | Number of MODIFY_BI records received from the server. |
modify_ai_count | Number of MODIFY_AI records received from the server. |
link_ai_count | Number of LINK_AI records received from the server. |
state_count | Number of STATE info records received from the server. |
doc_count | Number of DOC records received from the server. |
commit_count | Number of COMMITS. |
rollback_count | Number of ROLLBACKS. |