Import one or more copybooks into a record or segment to add data definitions to the record or segment.
After you import a DBD into an IMS data map, import a COBOL copybook into each segment in the data map to overlay each segment with its COPYLIB. This action redefines the data map while maintaining the hierarchical metadata information for the IMS database.
Open the data map.
On the
Data Map
tab in the
Resource Explorer
, select a record or a segment.
Click
File
Import Copybook
.
In the
Import Copybook - Source Details
dialog box, enter information about the location and type of copybook to import.
For some copybook types, you must enter additional information.
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.