MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

copy replacing in cobol

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Jun 30, 2010 10:21 am    Post subject: copy replacing in cobol Reply with quote

Was wondering if do a 'global' replace of MY-FIELD with YOUR-FIELD in the
sample copymember below, WITHOUT using pseudo-texting ?
i.e. putting colons around MY- --> :MY-: and doing :

COPY XXX REPLACING ==:MY-:== by ==YOUR-==


Code:
01  MY-COPY.               
    05  MY-FIELD-A  PIC X.
    05  MY-FIELD-B  PIC X.
    05  MY-FIELD-C  PIC X.
    05  MY-FIELD-D  PIC X.
    05  MY-FIELD-E  PIC X.


Thanks for any help...
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 30, 2010 10:26 am    Post subject: Reply with quote

don't think that will work.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 30, 2010 10:42 am    Post subject: Reply with quote

did a search, came up with these:
http://www.mvsforums.com/helpboards/viewtopic.php?t=6513&highlight=copy+replacing
http://www.mvsforums.com/helpboards/viewtopic.php?t=435&highlight=copy+replacing
which supports my previous post.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Wed Jun 30, 2010 1:41 pm    Post subject: Reply with quote

If you want to do this, why not use "pseudo texting"?
_________________
All the best,

di
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Thu Jul 01, 2010 4:45 am    Post subject: Reply with quote

Look here:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IGY3LR10/8.1.4.2?SHELF=&DT=20020920180651&CASE=
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group