Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Paste Options

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Paste Options
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: 6968
Location: porcelain throne

PostPosted: Wed Dec 19, 2007 3:05 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Dec 19, 2007 3:23 pm    Post subject:
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    Post subject: reply :Paste option
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: 1232
Location: Israel

PostPosted: Wed Dec 19, 2007 4:09 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 19, 2007 4:16 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 19, 2007 10:33 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm
No new posts Endevor - Compiler Options. Chetan Kumar Mainframe Interview Questions 4 Tue Oct 20, 2015 6:32 pm
No new posts Help with copy/paste in Reflections Chris Phillips TSO/ISPF 5 Tue Dec 16, 2014 10:05 pm
No new posts DFSORT with Reformat Options jegan_selvan DFSORT/ICETOOL 4 Tue Oct 14, 2014 4:52 pm
No new posts Compiler Options tmaheswara CICS 2 Mon Mar 11, 2013 11:59 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us