Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

copy REPLACING - two replaces possible?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: copy REPLACING - two replaces possible?
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts replacing junk with hyphen Nitin32 DFSORT/ICETOOL 10 Fri Jun 02, 2017 7:47 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us