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) which means it is not possible to set the appropriate Compiler directives on that file and the project fails to compile. 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 the file to the COBOL Programs folder 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 the file to the Copybooks folder of the project.
Alternatively, you can do one of the following: