COBCPY            (Environment)

DESCRIPTION
Sun MTP uses the value of the "COBCPY" environment variable to locate copy 
members, sometimes referred to as copy books, referenced by a COBOL program
during compilation.


VALUES
The value of "COBCPY" is a colon-separated list of directories that Sun MTP
searches sequentially from left to right. The format is as follows:

   directory[:directory]. . . 

where each directory should be a valid system directory. An item in brackets 
is optional.


INTERPRETATION
A user may specify Copylib settings within the Sun MTP development environment.
The precedence order in a directory search for a file included by a COBOL 
program is as follows:

1. the current directory
2. the directories specified via the Sun MTP Copylib Settings screen
3. the directories specified by the "COBCPY" environment variable


CONCLUSIONS
Note that in order for Sun MTP to be able to search the "COBCPY" directories, the
environment variable must be set before initiating a Sun MTP system.

Sun MTPScan displays the value of "COBCPY" as it is being used by a Sun MTP system.
Even with the system up and running, it does not mean that the value of the
environment variable is correct. If the system exhibits strange behavior,
examine the values of all environment variables on Sun MTPScan's Environment Screen
to ensure that the Sun MTP system has been told correctly where to look for the
components needed to execute a system.
