View previous topic :: View next topic
|
Author |
Message |
Murari Chakrakodi
New User
Joined: 26 Sep 2007 Posts: 13 Location: Bangalore,India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10879 Location: italy
|
|
|
|
no, but You can try to write Your own edit macro to do it |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Or if you need to do this to many members / datasets, try writing an ISPF edit macro. |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1248 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Ziquilix
New User
Joined: 17 Dec 2015 Posts: 3 Location: South Africa
|
|
|
|
I know this is resurrecting an old post but the actual answer which helped me is RRn and RR. This answer came up in Google which, I think, is not 100% accurate. So if you add a number to the Repeat block command you will coppy the blocked lines n times. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2119 Location: USA
|
|
|
|
There are enhanced ISPF EDIT line commands to specify multiple destination, in order to copy/move/paste the same chunk of lines to several points at once. Those are:
AK (After and Keep) - to insert after the marked line, and keep lines for extra insertions.
BK (Before and Keep) - to insert before the marked line, and keep lines for extra insertions.
You need to mark as many positions as you like with AK/BK, and finally mark the last of desired positions with regular A/B. After the Enter has been pressed, the same group of lines will be inserted simultaneously to all marked positions. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
This does not help at all. The question is about copying lines to multiple destinations not repeating lines. It was also answered correctly by Terry back in 2009. |
|
Back to top |
|
|
|