HP3000-L Archives

September 2012, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Anderson <[log in to unmask]>
Reply To:
Michael Anderson <[log in to unmask]>
Date:
Thu, 20 Sep 2012 22:02:40 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
On 09/19/2012 11:34 PM, Michael Anderson blathered:
> Yes nested copy's do work, however the REPLACING clause does not work. 
> Worse (I think) COPY with REPLACING does not generate a compile error, 
> but the replacement does not occur.

I was wrong

OpenCOBOL does support the COPY REPLACING! As well as nested COPY's

In my test I used
     COPY "mycopymodule.cpy" replacing "ABC" by "XYZ"

no replacing occured!
and, using the quotes didn't generate a compile error.

but

     COPY "mycopymodule.cpy" replacing ==ABC== by ==XYZ==

that worked.

I guess I need to brush-up on my COBOL.  ;-)

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2