I assume (but could be mistaken) that you are trying to replace a "part of a
string" rather than a COBOL "text word". Besides the fact that there are
"work-arounds" for doing partial word replacement, you might be interested
that the current ('02) standard DOES allow for replacing a "leading" or
"trailing" part of a COBOL text word (but not the middle).  If you want this
feature sooner than later (in IBM COBOL) you may want to submit a marketing
REQUEST to IBM referencing the existing SHARE requirement for this facility.

I know that COPY REPLACING was in the '68 Standard - I don't know when
exactly it was "designed".

P.S.  If you want to use "replacing" functionality with nested copies, look
at using the REPLACE statement along with nested COPY statements.  I believe
(but haven't checked it) that IBM support this already.

P.S.  I do NOT claim that the COBOL copy/replacing facility is how I would
design such a facility today - but it has been used "successfully" for 40
years or so.

"Thomas Berg" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>.
..
> ..just for my obscene curiosity:
> 
> What IDIOT designed the COBOL COPY REPLACING statement ??
> 
> Thomas

----------------------------------------------------------------------
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

Reply via email to