For an IMS data map, import a DBD copybook. Then, import a COBOL or
PL/I
copybook into each segment in the data map.
To display information about the last import operation, click
Last Import
.
The
Import Copybook Information
window displays the following information about the last copybook import operation:
Whether the copybook was imported from the local or a remote system
The name and type of the copybook
The default actions defined for imported records, fields, and tables
To close the dialog box, click
Cancel
.
Click
Next
.
Based on whether you specified a remote or local copybook location, enter information about the copybook in one of the following dialog boxes for the data source type:
window, review the information for the import operation.
The
Import Copybook Information
window displays the following information:
Whether PowerExchange imports the copybook from the local or a remote system
The name and type of the copybook
The default actions defined for imported records, fields, and tables
Click
OK
.
In the
Record Definition
dialog box, select an action for each imported record or segment.
If the copybook contains a record or field that duplicates a record or field in the data map, the
Duplicate Record Definition
dialog box appears. In the
Duplicate Record Definition
dialog box, you can select options to indicate how to handle the duplicate item. For example, you can choose to import, overwrite, or skip the item, or stop the import.
window notifies you that the copybook contains REDEFINES statements.
Complete the following steps:
To point to the line that contains the correct field, click
Redefinition
Next
or
Redefinition
Previous
.
Click
Import
Resume
.
The
Import
window displays the imported copybook.
The
Copybook Message Log
window displays the results of the import operation.
If an error message appears in the
Copybook Message Log
window, double-click the message to find the associated line in the copybook.
Close the
Import
window.
If you chose to overwrite a duplicate record or field in a data map, complete the following actions:
On the
Data Map
tab in the
Resource Explorer
, right-click the table that contains columns that are based on the updated record or field and click
Properties
.
In the
Record Dependencies
list in the
Table Properties
dialog box, select the table.
In the
Column Generation
list, select
Refresh with missing columns
.
Run a database row test on the table.
Based on the data source type for the data map and the type of copybook that you imported, you might need to complete one of the following tasks:
If you imported a COBOL or PL/I copybook into an Adabas data map, edit the data map to associate the imported field definitions with Adabas field definitions. For information, see
Viewing or Editing Properties for a Data Map Table.
If you imported a DBD source into an IMS data map, import a COBOL or