Conflict Detection Resolution (CDR) control structure

This structure contains information about the conflict detected in applying data to the target table. It is referenced by the PCONTROL field in the CDRDATA structure.

Field Name Length (in bytes) Type Description
REVISION 4 Integer An integer giving the version of the CDR user exit interface.

Possible values:

1=Revision 1

PSRCSCHEMA 4 Address A pointer to the source schema name.
PSRCTABLE 4 Address A pointer to the source table name.
PSRCMEMBER 4 Address A pointer to the source member name.
PSRCTIMESTMP 4 Address A pointer to the timestamp from the source system

The referenced timestamp is a character string in the format CCYY-MM-DD hh:mm:ss.ffffff

PSUBSCRIPTION 4 Address A pointer to the subscription name.
PTGTSCHEMA 4 Address A pointer to the target table schema name.
PTGTTABLE 4 Address A pointer to the target table name.
PTGTMEMBER 4 Address A pointer to the target member name (expected to be NULL on z/OS®).
NUMCOLS 4 Integer The number of columns in the row image structures.
OPERATION 1 Integer A code indicating the operation on the target table that resulted in the conflict.

Possible values:

1=Insert, 2=Update, 3=Delete

CONFLICT 1 Integer A code indicating the conflict type that was detected.

Possible values:

1=Row exists, 2=Row missing, 3=Before image different

HASBEFORE 1 Integer A code indicating whether the before image was provided to the user exit

Possible values:

1=Image exists, 0=Image not available

HASAFTER 1 Integer A code indicating whether the after image was provided to the user exit

Possible values:

1=Image exists, 0=Image not available

HASTARGET 1 Integer A code indicating whether the target image was provided to the user exit

Possible values:

1=Image exists, 0=Image not available

HASDESIRED 1 Integer A code indicating whether the desired image was provided to the user exit

Possible values:

1=Image exists, 0=Image not available

HASBEFORE 1 Integer A code indicating whether the before image was provided to the user exit

Possible values:

1=Image exists, 0=Image not available

RETCODE 1 Integer An integer to be updated by the user exit to indicate processing success or failure.

Possible values:

0=Processing continues, >0=An error occurred. replication activities are stopped regardless of the ENDONERROR setting.

DORESOLVE 1 Integer An integer to be updated by the user exit to indicate whether or not the desired image should be applied to the target table.

Possible values:

1=Use desired image, 0=Conflict not resolved. A permanent error will be logged. Replication will continue or stop, according to the ENDONERROR setting.