6.1
COpy STATEMENT
60229400
LIBRARY
The COBOL library contains text that is available to a source program at
compile time. Compilation of library text is effectively the same as if the
text were actually written as part of the source program.
6
The COBOL library may contain text for the Environment Division, the Data
Division, and the Procedure Division. Library text is made available through
the COpy statement.
COpy library-name
REPLACING {WOrd-1
}
identifier-1
BY
{WOrd-2
l
)dentifier-2 j
1
[
[.
{WOrd-3
}
identifier-3
BY
{word-4
} ]
t
identifier-4
... J
A word is any COBOL word in a library routine that is not on the list of
COBOL reserved words (appendix
C).
The COpy statement may appear:
•
In any Environment Division paragraphs
•
In any FD, SD, RD or 01 level entry in the
Data
Division
•
In a Procedure Division section or paragraph
No other statement or clause may appear in the same entry as the COpy
statement.
The library text is copied from the library at compilation time. The result
is the same as if the text were actually part of the source program. The
COpy process is terminated by the end of the library text.
6-1
Need help?
Do you have a question about the 3300 and is the answer not in the manual?