Understanding the structure of a .cd file
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
When you open the .cd file, the following contents appear:
- First row — Contains information of a single CDC table
policy. This row has an identifier or tag called “Table” as a prefix to identify
that the policy is a CDC table policy. The value at the end of the row indicates
the number of field policies associated with the CDC table policy.
Each column in the first row appears in the following oder:
Column Description TableThe identifier or tag to identify that the policy is a CDC table policy. Policy NameThe name of the table policy. DescriptionThe description of the policy. StateThe internal state of the policy. The values are 0 and 1 for Active and Inactive respectively.
InstanceThe policy on the source table. The values are 0, 1, and 2 for Current policy, Previous policy, and Pending policy respectively.
Source TableThe name of the source table. Source Table OwnerThe name of the owner of the source table. The source table can be a
PUBor non-PUBtable.Data AreaThe storage area where the change table. Index AreaThe storage area where the change table indices are created. Identifying FieldsIndicates if the Identifying fields are available for the policy. The values are Yes and No.
LevelThe level of data that is captured on the source table. The levels are:- Minimal(0)
- MinimalWithBitMap(1)
- Medium(2)
- Maximum(3)
Change TableThe name of the change table. Change Table OwnerThe name of the non- PUBorPUBowner of the change table.Encrypt PolicyThe encryption policy used for the change table. The values are Yes and No.
Misc FieldsThis is an extent [16] field and the values are non-editable. All values of
_Miscfields for_Cdc-Table-Policyare dumped.Field Policy CountThe number of field policies available for a table policy. A value of zero (0) indicates that there are no field policies available for that table policy.
For a CDC table policy in a .cd file, the following fields are ignored:_Policy-Id_Last-Modified_ObjectId_First-User-Field
_Policy-Instancefield is dumped, it can be overridden when loading the .cd file.Note: You cannot set theIn the_Policy-Instancefield value directly. To set the required_Policy-Instancefield value, you must change the_Policy-Statefield value during the loading process._Cdc-Table-Policytable, the name of the source table is identified from the_Source-File-Recid, and the data and index areas are identified from the_Area-Ianumand_Index-Area-Ianumfields. - Subsequent rows — Contain information of the field
policies associated with the CDC table policy. These rows have an identifier or
tag called “Field” as a prefix to identify that the policies are field policies,
followed by the name of the CDC policy name that they belong to.
Each column in these rows appears in the following order:
Column Description FieldThe identifier or tag to identify that the policy is a CDC field policy. Policy NameThe name of the corresponding CDC table policy. Field NameThe name of the field. Identifying FieldsIndicates if the Identifying fields are available for the policy. The values range from 1 to 15 and indicate ordinal position in the index.
Misc FieldsThis is an extent [16] field and the values are non-editable. All values of
_Miscfields for_Cdc-Field-Policyare dumped.For a CDC field policy in a .cd file, the following fields are ignored:_Policy-Id_Field-Position_Field-Recid
_Cdc-Field-Policytable, the name of the field is identified from the_Field-Recidfield. - Trailer — Contains information of the .cd file such as its name, the number of CDC
table policies available in the file, the name of the database from which the
policies are dumped, time and date when the dumping process completed, and
format of the code page.
Each row in the trailer appears in the following order:
Row Description filenameThe name of the .cddump file.recordsThe number of CDC table policies available in the dump file. ldbnameThe name of the database from which the policies are dumped. timestampThe time and date when the policies are dumped. numformatThe numeric format dateformatThe format of the date when the policies are dumped. cpstreamThe format of the code page in which you want the CDC policies to be dumped.
|