cmpdict Output
The output of a cmpdict command can be redirected to an ascii file and then imported into a spreadsheet. The format of the cmpdict command output depends on which type of database object is being compared:
File Database Object (FILE)
The following example shows the columns written by cmpdict when the database object being compared is a file in the database.
|
The following table describes the output.
Column | Description | Explanation |
---|---|---|
1 | SystemCode | The system code in which the file exists. |
2 | FileName | The name of the file being compared between data areas. |
3 | Subject | The type of database object being compared. In this case, FILE. |
4 | Action |
The type of difference in the database object between the source and destination data areas:
|
5 | SqlName | For future implementation. |
6 | View | If the file is a view, the phrase IsView will appear. |
Index Database Object (INDEX)
The following example shows the columns written by cmpdict when the database object being compared is an index.
|
The following table describes the output.
Column | Description | Explanation |
---|---|---|
1 | SystemCode | The system code in which the file exists. |
2 | FileName | The name of the file being compared between data areas. |
3 | Subject | The type of database object being compared. In this case, INDEX. |
4 | Action |
The type of difference in the database object between the source and destination data areas:
|
5 | SqlName | For future implementation. |
6 | Unique | Whether the index is unique or not. |
Field Database Object (FILEFIELD)
The following example shows the columns written by cmpdict when the database object being compared is a field in a database file.
|
The following table describes the output.
Column | Description | Explanation |
---|---|---|
1 | SystemCode | The system code in which the field exists. |
2 | FileName | The name of the file being compared between data areas. |
3 | Subject | The type of database object being compared. In this case, FILEFIELD (a field in a file). |
4 | Action |
The type of difference in the database object between the source and destination data areas:
|
5 | Position |
The location of the field in the file, when the field is new or the change is that the field moved within the file:
|
7 | Ref-Field-Name | A field used to indicate the position of another field in a file. |
8 | Name | The name of the field being compared. |
9 | Occ | The number of times the field occurs. |
10 | Type | The datatype of the field listed in column 8. |
11 | Precision | The precision of the field listed in column 8. |
12 | Scale | The scale of the field listed in column 8. |
Index Field Database Object (INDEXFIELD)
The following example shows the columns written by cmpdict when the database object being compared is an index field.
|
The following table describes the output.
Column | Description | Explanation |
---|---|---|
1 | SystemCode | The system code in which the index field exists. |
2 | IndexName | The name of the index being compared between data areas. |
3 | Subject | The type of database object being compared. In this case, INDEXFIELD (a index in a file). |
4 | Action |
The type of difference in the database object between the source and destination data areas:
|
5 | Position |
The location of the field in the file, when the field is new or the change is that the field moved within the file:
|
7 | Ref-Field-Name | A field used to indicate another field in the index. |
8 | Name | The name of the index field being compared. |
9 | SqlName | For future implementation. |
10 | Direction | Whether the index field has changed from ascending to descending, or vice versa. |
Index Condition Database Object (INDEXCOND)
The following example shows the columns written by cmpdict when the database object being compared is an index condition.
|
The following table describes the output.
Column | Description | Explanation |
---|---|---|
1 | SystemCode | The system code in which the index condition exists. |
2 | IndexName | The name of the index where the condition exists. |
3 | Subject | The type of database object being compared. In this case, INDEXCOND (a condition in an index). |
4 | Action |
The type of difference in the database object between the source and destination data areas:
|
8 | Name | The name of the condition being compared. |