You still aren't using COBOL terminology correctly, but that doesn't really
matter.  I have posted code that will support some applications doing
partial word replacement while others do not.

However, if you want to do partial word replacement - when the copy members
are NOT correctly set up (and while IBM has not introduced support for the
ISO 2002 "leading" and "trailing" options), then you are simply "out of
luck".

The COBOL language (ANSI/ISO Standard) up until the '02 Standard simply
requires that COPY REPLACING and the REPLACE statement work on
   COBOL text words
        and 
   ONLY full text words

(text words are not QUITE the same as COBOL words).  That is ALL the feature
was designed to do and that is all that it does with current IBM Enterprise
COBOL.

There are "ways around" this restriction (discussed in this group) but the
COBOL compiler simply will not (and should not) do what it isn't supposed to
do.  The '02 Standard did enhance the design of COPY/REPLACING and REPLACE.
If this is really important to you, then you should communicate this to IBM
via an IBM marketing REQUEST.  Don't use this forum to "complain" about the
compiler doing what it is designed and documented as doing.

"Amlan Prasad" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> sorry, yes i meant COBOL pseudo-text. So basically when I have
pseudo-text, 
> the replacing option works well. I want to do the same when the copybook 
> does not have any pseudo-text.
> 
> thanks,
> Amlan
> 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

Reply via email to