The following table shows how setting the COBCPY environment variable effects the search order for files specified on COPY statements.
COPY Statement | Contents of COBCPY | Files Searched For (includes path) |
---|---|---|
copy f1 |
|
|
copy "f1.cop" |
|
|
copy "f1.cop" | dir1 |
|
copy "dir1\f1" | didr2 |
|
copy f1 of dir1 |
|
|
copy f1 | d:\ (selects root directory on d:) |
|
copy f1 | d: (selects current directory on d:) |
|
copy f1 | dir1\ |
|
copy f1 in dir1 | \dir2 |
|