Importing a record definition from a COBOL copybook
Choose Application Files>Import Definitions>COBOL from the main menu.
The COBOL Record Definition Import window displays.
Browse to the COBOL file you will use as the source for your record definitions.
Select one of the following options for the import:
Add Application Record Only – only the record names and definitions are imported from the COBOL file.
Add Application Record and File Name – the names and definitions of the records are imported from the COBOL file. They are associated with the file listed in the File Name text box.
Add Application Record, File Name, and Directory – the names and definitions of the records are imported from the COBOL file and are associated with both the file and directory listed in File Name and Directory text boxes.
The File Name and Directory text boxes list file and
directory from which you are importing the record definitions. You
may use these names, or you can change them.
Select Continue on the COBOL Record Definition Import window.
If the file name does not exist, the New File window displays.
Enter the File Type (and optional Description) and select OK. You return to the COBOL Record Definition Import window.
If you have errors, various error messages display in dialog boxes. Make the necessary corrections and select Continue on the COBOL Record Definition Import window.
The Select COBOL Records window displays.
Select the COBOL record you want to import and select Load.
When the program has finished importing the record definitions and performing the file and directory associations (if you chose either of those options), a View Log message box appears saying “Run Complete”.
Select Yes on the View Log message box, and the COBOL
Import Log window displays. It lists the records from which definitions were extracted and imported and displays an import error status.
Select OK, and the excobol window displays saying “Extract Run Completed Successfully”.
Select OK on the excobol window to return to the COBOL Record Definition Import window.