Hi,
is it possible to convert 2 different strings within a single COPY statement?
For example, the following is not working.. Is there any other way you know?
COPY MYSAMPLECOPY REPLACING
==X== BY ==Y==
==W== BY ==Z==.
.
Robert Sample wrote:Be aware, too, that COPY statements do NOT work like most new COBOL programmers think. In your COPY statement, X and W must be variable names or otherwise be delimited by spaces; your COPY statement will not -- EVER -- change WS-XVARIABLE to WS-YVARIABLE since COBOL COPY statements do not work on strings. You could put in your copybook WS-:X:VARIABLE and your COPY statement could change :X: to Y but without the delimiters around it, X will not be changed inside a variable name.