Problem:
When a copybook, specified in conjunction with a COPY statement, cannot be found, the compiler will flag it with the following error:
"COBCH0008 Unknown COPY file filename specified"
Where filename is the name of the missing copybook.
Resolution:
1. Make sure the file is available in one of the following locations:
in the same directory as the source code that has has the COPY statement
in one of the directories specified in the COBCPY environment variable, i.e. COBCPY=c:\\copyfiles;c:\\morefiles
in the same location as specified in the COPY statement IF it is fully qualified from the COPY statement, i.e. x:\\dir\\filename.cpy
2. Make sure to specify the extension in the COPYEXT directive if it is not either CPY or CBL, i.e. COPYEXT"src,txt"
3. Make sure to add the COPYEXT directive accordingly:
in a directive file, e.g. COBOL.DIR in the project folder, or
in the project directives BEFORE the semi-colon, under IDE->Project->Properties, or
in the Compile Single File option BEFORE the semi-colon, under IDE->Project->Build Settings, or
in the first line of the source code with $SET COPYEXT"src,txt"
4. Make sure the spelling is correct
