Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us