When you import existing COBOL sources into Enterprise Developer, the IDE scans each imported file to determine whether it is a COBOL program or a copybook. Based on the settings specified in Window > Preferences > Micro Focus > COBOL > Directives Determination, the IDE sets Compiler directives only on the files identified as COBOL programs.
In certain situations, the IDE may identify a COBOL program as a copybook (or vice versa); this could mean that the appropriate Compiler directives are not set on a file incorrectly identified as a copybook, which could cause a project compilation failure. In such cases, you can use the Transform Copybook to Program and Transform Program to Copybook context menu commands to manually indicate the correct file type.
To indicate that a file is a COBOL program:
This updates the information in the project about this file and moves it to the COBOL Programs category of the project.
Alternatively, you can do one of the following:
Copying moves the file.
To indicate that a file is a copybook:
This updates the information in the project about this file and moves it to the Copybooks category of the project.
Alternatively, you can do one of the following: