FWIW, I hade the same problem and posted it to this list last Year. No one had any solution to that, despite many otherwise very helpful answers. The main problem is the need for nesting.
AFAICS, the only solution lies outside the compiler COPY function, like having You own "preprocessor" of the codes etc. Regards, Thomas Berg __________________________________________ Thomas Berg Specialist IT-U SWEDBANK > -----Ursprungligt meddelande----- > Från: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] För Amlan > Skickat: den 14 oktober 2008 08:54 > Till: [email protected] > Ämne: Nested COPY statement with the REPLACING > > As per the latest COBOL Version: > "COPY statements can be nested. However, nested COPY > statements cannot contain the REPLACING phrase, and a COPY > statement with the REPLACING phrase cannot contain nested > COPY statements." > > We have a requirement to have nested COPY starements with > REPLACING otherwise we will need major reqork in the system. > Any suggestions or ideas please. > > Thanks, > Amlan > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access > instructions, send email to [EMAIL PROTECTED] with the > message: GET IBM-MAIN INFO Search the archives at > http://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

