“COPY” statement with “REPLACING” in COBOL
问题 I am getting compilation error as, A "COPY" statement with "REPLACING" phrase was found within a nested "COPY". This is our compilation setting that we can not use REPLACING verb in nested copy. We have one copybook which is having multiple copy statements with replacing verb. Can anyone help me to resolve this error? 回答1: Nesting COPYBOOKS in COBOL is a bit of a trick. In general you may nest copybooks only if they do not contain the REPLACING phrase and do not cause recursion. Suppose you