View previous topic :: View next topic
|
Author |
Message |
knickraj Warnings : 1 New User
Joined: 11 Jun 2007 Posts: 50 Location: Euro
|
|
|
|
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..
thanks in advance
Praveen |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
knickraj Warnings : 1 New User
Joined: 11 Jun 2007 Posts: 50 Location: Euro
|
|
|
|
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
any way thanks for ur response
regards
praveen |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yes Edit macro can do the trick. |
|
Back to top |
|
|
|