IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

copy REPLACING - two replaces possible?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mohanrazz

New User


Joined: 30 Sep 2008
Posts: 30
Location: India

PostPosted: Thu Jul 09, 2009 4:47 pm
Reply with quote

Hi,

I have a copy book which has 10 fileds. five fields start with TAG1 and rest of five with TAG2. I have to copy this copybook into my program. TAG1 needs to be replaced with ws1 and TAG2 with ws2.

Is it possible with COPY REPLACING ?

thanks.
Back to top
View user's profile Send private message
prasadplease

New User


Joined: 02 Sep 2006
Posts: 31
Location: Mumbai

PostPosted: Thu Jul 09, 2009 4:59 pm
Reply with quote

Yes it is, separate the 2 replacing with comma (,)


COPY TESTCB1 REPLACING ==:A03:== BY ==NEW==,
==:A05:== BY ==OLD==.
Back to top
View user's profile Send private message
mohanrazz

New User


Joined: 30 Sep 2008
Posts: 30
Location: India

PostPosted: Thu Jul 09, 2009 5:01 pm
Reply with quote

prasadplease wrote:
Yes it is, separate the 2 replacing with comma (,)


COPY TESTCB1 REPLACING ==:A03:== BY ==NEW==,
==:A05:== BY ==OLD==.


thanks boss
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top