Page 1 of 1

Copy a single at multiple places in ISPF.

Posted: Sat Oct 28, 2017 10:37 pm
by Anil
Hi.

In ISPF when I edit a dataset and I need to copy a line from one place to another I do "C" copy and paste it using "a" at a location I want to. But if I have to copy it multiple time, I need to copy it multiple times, is there way to overcome this in ISPF? Please advise.

Re: Copy a single at multiple places in ISPF.

Posted: Sun Oct 29, 2017 3:42 am
by nicc
No. Or, at least, there wasn't. Try looking up 'K(eeP)'. I am not sure if that is what it does as it is 3 years since I last used a modern version of ISPF and I am not going to look up the manual as you can do that yourself.

Re: Copy a single at multiple places in ISPF.

Posted: Sun Oct 29, 2017 8:17 am
by Robert Sample
With z/OS 2.1, I use the CUT primary command and PASTE primary command of ISPF to duplicate one or more lines of code multiple times.

Re: Copy a single at multiple places in ISPF.

Posted: Thu Nov 02, 2017 3:24 pm
by prino
"C" on line to copy, "AK"/"BK" on all lines to copy to, and just "A"/"B" on the last of them.

Re: Copy a single at multiple places in ISPF.

Posted: Fri Nov 03, 2017 11:22 am
by Anil
nicc wrote: Sun Oct 29, 2017 3:42 amNo. Or, at least, there wasn't. Try looking up 'K(eeP)'. I am not sure if that is what it does as it is 3 years since I last used a modern version of ISPF and I am not going to look up the manual as you can do that yourself.
No keep did not work for me. Thanks though.

Re: Copy a single at multiple places in ISPF.

Posted: Fri Nov 03, 2017 11:30 am
by Anil
prino wrote: "C" on line to copy, "AK"/"BK" on all lines to copy to, and just "A"/"B" on the last of them.
Hi prino - Thanks, this is wht I was looking for. Great tip.

Re: Copy a single at multiple places in ISPF.

Posted: Fri Nov 03, 2017 4:57 pm
by nicc
The 'K' is for Keep, so you did not look hard enough.

Re: Copy a single at multiple places in ISPF.

Posted: Sat Nov 04, 2017 12:00 pm
by Anil
Thanks nicc. Right you are correct.