If You have an example of a "work-around" for the partial word replacement 
I would be grateful for that.  Note that a change in existing copys is not an 
option.
(If that would change the field names or other functional changes.)

You cannot use nested COPY statements with COPY REPLACING.  (IBM)

Thomas
_____________________________________________________________
Thomas Berg   Specialist   IT Utveckling   Swedbank AB (Publ) 


> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] För Bill Klein
> Skickat: den 8 november 2007 04:25
> Till: [email protected]
> Ämne: Fw: COBOL COPY statement w REPLACING...
> 
> 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]
> pa.myntet.se>.
> ..
> > ..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
> 

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