The COPY statement includes text in a COBOL source program. Format 1 - COPY text-name [ { OF } library-name ] [ { IN } ] [ { { ==pseudo-text-1== } { ==pseudo-text-2== } } ] [REPLACING { { identifier-1 } BY { identifier-2 } } ... ] . [ { { literal-1 } { literal-2 } } ] [ { { word-1 } { word-2 } } ]
1 – text-name
is the name of a COBOL library file available during compilation.
2 – library-name
is the name of the OpenVMS Librarian library file that contains text-name.
3 – 1__pseudo-text-1__identifier-1__literal-1__word-1
are text-matching arguments that the compiler compares against text-words in the library text.
4 – 2__pseudo-text-2__identifier-2__literal-2__word-2
are replacement items that the compiler inserts into the source program.