IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Paste Options


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
knickraj
Warnings : 1

New User


Joined: 11 Jun 2007
Posts: 50
Location: Euro

PostPosted: Wed Dec 19, 2007 10:45 am
Reply with quote

hi,
Just need to know if there is any short cut command to paste a block in a file in many postions with one single paste .
for..e.g
if i have cut a line for example : cut x
were x is
014914 SELECT ACCCUST-FILE ASSIGN TO ACCCUST
014915 ORGANIZATION IS SEQUENTIAL
014916 ACCESS MODE IS SEQUENTIAL

now i need to paste it in a file
with paste x on command line

014914 IDENTIFICATION DIVISION.
014916A PROGRAM-ID.
0149140 AUTHOR.
0149141A DATE-WRITTEN.
0149142


like this...in a single go....
does mainframe has any command like this for multiple paste

if anyone can help you are welcome.. icon_smile.gif

thanks in advance
Praveen
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Dec 19, 2007 3:05 pm
Reply with quote

Can't follow exactly what you want to do.

cut and paste work similiarly as on the pc. on the mainframe, i usually paste large blocks into an area created by the insert linecommand with 22 lines (I22).

you can alternatively, use the CC block line commands to capture your copy/cut and create or replace an intermediate pds member (i usually use my initials - replace dbz) then I swap to the member where I wish to paste and use the COPY dbz primary command and an 'A' or 'B' line command.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Dec 19, 2007 3:23 pm
Reply with quote

Praveen,

If you are using PCOM, may be there is way (some what tedious process). Follow this -

(1) While copying the blocks, use 'copy append' option from edit tab on the menu. You need to remember 'number of lines' in each copied block.
(2) during paste, insert 'n' number of lines (I'n') as first block at the end of session. Then use 'paste' option from edit tab.
(3) For pasting other blocks, insert 'n' lines at the end and use 'paste next' option from edit tab.

As said before you need to remember the number of lines and require 'lots and lots' of patience.
Back to top
View user's profile Send private message
knickraj
Warnings : 1

New User


Joined: 11 Jun 2007
Posts: 50
Location: Euro

PostPosted: Wed Dec 19, 2007 3:49 pm
Reply with quote

Hi Dick ,
think u culdnt understand my question as u said, i used CC block line commands to capture 3 lines of code and named it as X (refer the example with the question) now in a new file which has some code in it ,i want to paste the 3 captured lines (x) in diiferent places(line numbers) in the new code simultaneously in a single go. now i think its more clear to u icon_smile.gif

any way thanks for ur response

regards
praveen
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Dec 19, 2007 4:09 pm
Reply with quote

Type: CUT DISPLAY and hit enter.

If you see a panel with "SPF/E----- CUT Assistance -----"
then you have SPIFFY installed and you can use:
Code:
CUT TO n (name or number from 0 to 99)
PASTE FROM n

If you see a panel with "Clipboard manager"
then SPIFFY is not installed or its cut/paste is disabled.
In that case you can use:
Code:
CUT zzz (name only)
PASTE zzz
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Dec 19, 2007 4:16 pm
Reply with quote

murmohk1 wrote:
(2) during paste, insert 'n' number of lines (I'n') as first block at the end of session. Then use 'paste' option from edit tab.


Did the 'clip-board' remember, how many line/s were copied in subsequent 'copies'. 'Copy-paste' option is not this intelligent yet, I think.
It'll just paste whatever has been accumlated there 'on that'.
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 Dec 19, 2007 10:12 pm
Reply with quote

You can indicate 1 place to insert the paste buffer with "A" or "B". How would you indicate the other places you want lines to be inserted? If this question is answered I think an edit macro might be able to do what you want.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Dec 19, 2007 10:33 pm
Reply with quote

Yes Edit macro can do the trick.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL MVS options COBOL Programming 8
No new posts Default FTP options All Other Mainframe Topics 2
No new posts DB2 Unload format options DB2 2
No new posts Endevor - Compiler Options. Mainframe Interview Questions 4
No new posts Help with copy/paste in Reflections TSO/ISPF 5
Search our Forums:

Back to Top