Specifies a list of directories for the Compiler to search for copy files.
Syntax:
>>----.--COPYPATH---"list-of-directories"--.--><
+-----NOCOPYPATH---------------------+
Parameters:
list-of-directories
|
The directories to search. Use semicolons to separate the directories. Use quotes to surround the path if it contains spaces.
|
Properties:
Default:
|
COPYPATH($COBCPY), which means use the COBCPY environment variable to search for copy files
|
IDE equivalent:
|
From the project's properties, expand
Micro Focus > Build Path >
Dependency Paths, ensure
Type is set to
COBOL Copybook Paths |
Phase
|
Syntax check
|
$SET
|
None
|
Comments:
You should only use the COPYPATH directive when compiling using the cobol (Windows) or cob (UNIX) command line utility, and not when building programs from within the IDE.
When you use this directive, the Compiler does not search the COBCPY environment variable. Note that some of your COBOL development system's components rely on COBCPY being set to find copy files.
You cannot specify environment variables as a parameter for this directive.