Multiple choice technology mainframe

Pick the wrong syntax:

  1. COPY CopyFile1 REPLACING X(3) BY X(19).

  2. COPY CopyFile1 REPLACING XYZ TO 120.

  3. COPY CopyFile1 IN COPYLIB.

  4. COPY CopyFile1.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The COPY statement in COBOL uses REPLACING with the syntax 'pseudo-text BY pseudo-text'. Option B incorrectly uses 'XYZ TO 120' which doesn't match the required pseudo-text format with == delimiters. Options A, C, and D show valid COPY syntax.