On Nov 12, 2007, at 1:24 PM, Farley, Peter x23353 wrote:

-----Original Message-----
From: Bill Klein [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 08, 2007 11:15 PM
To: [email protected]
Subject: COBOL COPY statement w REPLACING...

The documented (and functional) way to do partial replacement in current
COBOL is documented at:

http://publibz.boulder.ibm.com/cgi-
bin/bookmgr_OS390/BOOKS/igy3lr31/8.1.7.3

Yes, I am well aware of that method. It requires changing the contents of
the copybook.  If I may quote my original situation:

"... where an older copybook did not have separators around the leading
prefix, so it could not be replaced."

IOW, this copybook does NOT have "tagged" prefix "words" for each variable, just normal COBOL words. The copybook can be used WITHOUT any REPLACING
strings.

I want to be able to use REPLACING for such a copybook WITHOUT modifying the
copybook (because I don't own it and am not allowed to change it).

Why can't we do such a simple thing?

Peter

Peter,

There are usually ways around this one is to copy the member to a different library and change and then when you compile just add the library in front of the concatenation. As to why... ask the dark side:)

Ed

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