+-------------------------------IBM Extension--------------------------------+
Copy Statement - Format 3 - Basic IFS
>>-COPY--+-text-name-+--+--------------------------+------------>
'-literal-1-' '-+-OF-+--+-library-name-+-'
'-IN-' '-literal-2----'
>--+---------------+--+-----------------------+--.-------------><
| (1) | '-REPLACING--| phrase |-'
'-SUPPRESS------'
Notes:
COPY "MyInc" COPY "x/MyInc" COPY "/u/user1/MyInc"literal-2 is treated as the actual path, relative or absolute, from which the copy file text-name or literal-1 is located.
1. text-name.cpy 2. text-name.CPY 3. text-name.cblle 4. text-name.CBLLE 5. text-name.cblleinc 6. text-name.CBLLEINC 7. text-name.cbl 8. text-name.CBL 9. text-name.cob 10. text-name.COB 11. text-name.MBR 12. text-name
MYCOPY=mystuff/today.cpy MYLIB=/u/user1
These settings result in:
/u/user1/mystuff/today.cpy
When library-name is an environment variable that identifies the path from which copy text is to be copied, use the ADDENVVAR command such as the following example to define library-name:
ADDENVVAR ENVVAR(COPYLIB) VALUE(/u/mystuff/copybooks)
The name of the environment variable must be uppercase. To specify more than one copy library, set the environment variable to multiple path names delimited by : (colon). When library-name is omitted and text-name is not an absolute path name, the copy text is searched for in this order:
+----------------------------End of IBM Extension----------------------------+
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.