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 the lines to multiple destinations at one shot

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Murari Chakrakodi

New User


Joined: 26 Sep 2007
Posts: 13
Location: Bangalore,India

PostPosted: Wed Jul 15, 2009 9:27 pm    Post subject: Copy the lines to multiple destinations at one shot
Reply with quote

Hi All,

Is there any way to copy the lines to multiple destination. We will use CC CC in the line to be copied and use A or B to copy into new destination after the line or before the line respectively. Can we have any command or tool to copy it to multiple destination?

Thanks,
Murari
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Jul 15, 2009 9:29 pm    Post subject: Reply to: Copy the lines to multiple destinations at one sho
Reply with quote

no, but You can try to write Your own edit macro to do it
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Jul 15, 2009 10:15 pm    Post subject:
Reply with quote

If you use the "CUT" primary command (with CC line command) and "&PASTE KEEP" primary command (with A or B line command) you can avoid putting the CCs in over and over again.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Jul 17, 2009 9:54 am    Post subject:
Reply with quote

The ISPF release I'm currently using allows multiple destinations for MOVE and COPY line commands, and block MM and CC also. See the help panels.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 17, 2009 11:24 am    Post subject:
Reply with quote

Or if you need to do this to many members / datasets, try writing an ISPF edit macro.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Wed Jul 22, 2009 12:13 am    Post subject:
Reply with quote

I beleive you cannot copy a set of lines to multiple datasets at a same time.
Instead you can retain the data using the CUT option and reuse.
Example
cc..cc the number of lines and enter CUT A1
it will store the data in a storage A1. You can re-use it as many times as you want by entering paste A1 in your destination dataset.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Jul 22, 2009 4:59 am    Post subject:
Reply with quote

diwa_thilak wrote:
I beleive you cannot copy a set of lines to multiple datasets at a same time.
I don't think we're talking about multiple data sets here; just moving or copying 1 or more lines to multiple locations in the same data set or PDS member. As I said, some of the newer releases of ISPF now have this function. Instead of keying A for copying a line after the destination line, key AK on each destination line number except for the last which will have just an A. AK means After Keep, BK means Before Keep. See the "What's new in this release" part of ISPF or check the help panels or Tutorial.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 22, 2009 4:20 pm    Post subject:
Reply with quote

Douglas Wilder wrote:
If you use the "CUT" primary command (with CC line command) and "&PASTE KEEP" primary command (with A or B line command) you can avoid putting the CCs in over and over again.
Nice shot Douglas.

Regards,
Ad
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 22, 2009 4:25 pm    Post subject:
Reply with quote

Hello Murari,

Did you try what Douglas has said -- that works pretty well for me. And unless you mean something different than what is posted by you in origianl post, it should suffice for your need.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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