Importing data structures into a single DBD segment
You can enhance metadata with additional information about field layouts by importing one or more data structure files (COBOL copybooks or PL/I includes) into your IMS™ Explorer project.
Procedure
To import data structures:
- From the Project Explorer, navigate to the DBD folder, and open the DBD file that contains the segment that you want to add field definitions to. The IMS DBD editor editor opens with the graphical view of the DBD.
- In the Edit view of the IMS DBD editor, right-click the editor background or the segment that you want to add field definitions to, and select Import COBOL or PL/I Data Structures.
- Specify the location to import the data structures from and specify the file type.
- Click Browse to
select the data structure file that contains the COBOL copybooks or
PL/I includes that you want to import.
- If you are importing from z/OS, the data structure file will not have a file extension. It will take the file type specified in 3.
- If you are importing from a local file system, a file with
one of the following extensions will take that file type as default:
- A COBOL copybook can have any of the following file name extensions: .cbl, .ccp, .cpy, or .cob.
- A PL/I include can have any of the following file name extensions: .pli, .inc, or .mac.
Tip: If the file extension is incorrect for the type of file type that the file is, either change the file extension or click Window > Preferences > Importer, and then select either COBOL or PL/I from the list on the left. Then, edit the type of file that is indicated by each file extension.If the data structure file does not have a file extension, it will take the file type specified in 3.
- Select the data structure name and its associated segment or segment map that the data structure will be imported into.
- Click Add to Import List.
- Optional: Repeat steps 4 through 6 as necessary to import additional data structures into different segments.
- Click Finish to import the fields into the selected segment.
Parent topic: Working with metadata
Related reference:
© Copyright IBM Corporation 2010, 2017.