Copy a single at multiple places in ISPF.

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

Moderator: mickeydusaor

Post Reply
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Copy a single at multiple places in ISPF.

Post 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.
Thanks,
Anil
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Copy a single at multiple places in ISPF.

Post 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.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Copy a single at multiple places in ISPF.

Post 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.
User avatar
prino
Registered Member
Posts: 68
Joined: Sun Jun 01, 2014 4:15 am
Location: Vilnius, Lithuania
Contact:

Re: Copy a single at multiple places in ISPF.

Post by prino »

"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
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Re: Copy a single at multiple places in ISPF.

Post 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.
Thanks,
Anil
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Re: Copy a single at multiple places in ISPF.

Post 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.
Thanks,
Anil
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Copy a single at multiple places in ISPF.

Post by nicc »

The 'K' is for Keep, so you did not look hard enough.
Regards
Nic
Anil
Registered Member
Posts: 70
Joined: Sun Jun 16, 2013 12:41 am

Re: Copy a single at multiple places in ISPF.

Post by Anil »

Thanks nicc. Right you are correct.
Thanks,
Anil
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

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