The REPLICATION function activates or deactivates replication for an Adabas database file. This function should be used with Adabas databases; it is not valid with Event Replicator databases.
This document covers the following topics:
The file number of the database file for which replication is to be activated or deactivated. This parameter is required; there is no default.
Note:
Replication may not be turned on for an Adabas system file or for
a ciphered file.
One of the parameters ON, OFF, or MODIFY must be set. There is no default. Each parameter is described below:
ON turns replication on for the specified file.
OFF turns replication off for the specified file.
MODIFY allows you to modify one or more of the replication-related values (KEY, TARGET, DSBI) for a replicated file. The ACTIVATE and DEACTIVATE parameters allow you to change the replication status for a replicated file.
The ACTIVATE parameter is only allowed when MODIFY is specified. It will activate replication for a file that has replication defined. Replication must already be inactive for the file.
The DEACTIVATE parameter is only allowed when MODIFY is specified. It will deactivate replication for a file that has replication defined. Replication must already be active for the file.
The DSBI parameter defines whether or not before images of data storage are collected for replication during the update of a record on a file. Following are rules for setting the DSBI parameter:
Possible values: "ON", "OFF"
The parameter is optional when "ON" or "MODIFY" is specified.
The parameter has a default value of
"ON" when ADADBS REPLICATION ON
is
specified.
The parameter is not allowed when ADADBS REPLICATION
OFF
is specified.
For more information about how this parameter is used in Adabas database processing during replication, read Nucleus Processing in Event Replicator for Adabas Concepts.
The KEY parameter defines the primary key for replication. Following are rules for setting the KEY parameter:
The parameter is optional when ON or MODIFY is specified.
The parameter is not allowed when OFF is specified.
The parameter may not be specified when OFF or NOKEY is specified.
Note:
The field name specified must be a descriptor on the file. Note
that "descriptor" in this case is used generically, as the field may be a
descriptor, subdescriptor, superdescriptor, etc.
The NOKEY parameter removes the primary key setting when MODIFY is specified. Following are rules for setting the NOKEY parameter:
The parameter is not allowed when OFF is specified.
The parameter is the default setting when ON is specified and neither NOKEY nor KEY is specified.
The parameter may not be specified when KEY is specified.
TARGET defines the Event Replicator target database ID. This parameter is required when ON is specified, is optional when MODIFY is specified, and is not allowed when OFF is specified.
ADADBS REPLICATION FILE=33,ON,TARGET=206,KEY=AA
or
ADADBS REPLICATION FILE=70,OFF
or
ADADBS REPLICATION FILE=71,MODIFY ADADBS ACTIVATE
or
ADADBS REPLICATION FILE=72,MODIFY ADADBS DEACTIVATE