The COPY statement includes text in a COBOL source program.
Format 2 -
COPY record-name FROM DICTIONARY
[ { { ==pseudo-text-1== } { ==pseudo-text-2== } } ]
[REPLACING { { identifier-1 } BY { identifier-2 } } ... ] .
[ { { literal-1 } { literal-2 } } ]
[ { { word-1 } { word-2 } } ]
1 – record-name
is a partial or complete Common Data Dictionary/Repository (CDD/Repository) pathname. It specifies the CDD/Repository record description to be copied into the source program.
2 – 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.
3 – 2__pseudo-text-2__identifier-2__literal-2__word-2
are replacement items that the compiler inserts into the source program.