Copy a single at multiple places in ISPF.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Previous topicNext topic

Topic Author
Anil
Registered Member
Posts: 58
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

Copy a single at multiple places in ISPF.

Post by Anil » Sat Oct 28, 2017 10:37 pm

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.


Thanks,
Anil


nicc
Global Moderator
Global Moderator
Posts: 597
Joined: Wed Apr 23, 2014 8:45 pm

Re: Copy a single at multiple places in ISPF.

Post by nicc » Sun Oct 29, 2017 3:42 am

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.


Regards
Nic

User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1379
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Copy a single at multiple places in ISPF.

Post by Robert Sample » Sun Oct 29, 2017 8:17 am

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.



User avatar

prino
Registered Member
Posts: 61
Joined: Sun Jun 01, 2014 4:15 am
Location: Oostende, Belgium
Zodiac: Pisces

Re: Copy a single at multiple places in ISPF.

Post by prino » Thu Nov 02, 2017 3:24 pm

"C" on line to copy, "AK"/"BK" on all lines to copy to, and just "A"/"B" on the last of them.


Robert AH Prins
robertahprins @ the.17+Gb.Google thingy
Some z/OS code here


Topic Author
Anil
Registered Member
Posts: 58
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

Re: Copy a single at multiple places in ISPF.

Post by Anil » Fri Nov 03, 2017 11:22 am

nicc wrote: ↑
Sun Oct 29, 2017 3:42 am
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.
No keep did not work for me. Thanks though.


Thanks,
Anil


Topic Author
Anil
Registered Member
Posts: 58
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

Re: Copy a single at multiple places in ISPF.

Post by Anil » Fri Nov 03, 2017 11:30 am

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.


Thanks,
Anil


nicc
Global Moderator
Global Moderator
Posts: 597
Joined: Wed Apr 23, 2014 8:45 pm

Re: Copy a single at multiple places in ISPF.

Post by nicc » Fri Nov 03, 2017 4:57 pm

The 'K' is for Keep, so you did not look hard enough.


Regards
Nic


Topic Author
Anil
Registered Member
Posts: 58
Joined: Sun Jun 16, 2013 12:41 am
Zodiac: Sagittarius

Re: Copy a single at multiple places in ISPF.

Post by Anil » Sat Nov 04, 2017 12:00 pm

Thanks nicc. Right you are correct.


Thanks,
Anil

Previous topicNext topic

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”