COBOL Manual for TNS and TNS/R Programs

Source Text Manipulation
HP COBOL Manual for TNS and TNS/R Programs522555-006
10-7
REPLACING Phrase
REPLACING Phrase
The REPLACING phrase of the COPY statement directs the compiler to replace every
occurrence of a portion of library text with a replacement portion when it copies library
text into a source program.
You can specify more than one pair of such portions for the compiler to replace when it
executes a COPY statement. The compiler searches for each original portion in the
order in which you declared them in the REPLACING phrase.
original
new
.
REPLACING
BYoriginal new
OFF
VST247.vsd
identifier-1
literal-1
word-1
pseudo-text-1
VST248.vsd
identifier-2
literal-2
word-2
pseudo-text-2
VST249.vsd