View previous topic :: View next topic
|
Author |
Message |
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi,
I need to copy 3rd and 4th record from Member1 and paste it after 6th record in Member2. Both these members are in different PDS. Please let me know how can I do this.
Member1
Code: |
****** ***************************** Top of Data *******
000001 The first line of data
000002 The second line of data
000003 The third line of data
000004 The fourth line of data
000005 The fifth line of data
000006 The sixt line of data
000007 The 7th line of data
000008 The 8th line of data
000009 The 9th line of data
000010 The 10th line of data
****** **************************** Bottom of Data ***** |
Member2
Code: |
****** ***************************** Top of Data *******
000001 The first line of data
000002 The second line of data
000003 The third line of data
000004 The fourth line of data
000005 The fifth line of data
000006 The sixt line of data
000007 The 7th line of data
000008 The 8th line of data
000009 The 9th line of data
000010 The 10th line of data
****** **************************** Bottom of Data ***** |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
CUT and PASTE
cut data will be saved for the whole TSO session |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
nair,
You can use the Block commands for the same
Open the member 1
- CC and CC and then CUT
open the 2nd member
- A/B (after/before) and then PASTE . |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi enrico and Aaru,
Thanks for the help. It is now working fine. Earlier I was trying with COPY. |
|
Back to top |
|
|
satheeshkamal
New User
Joined: 09 Jan 2007 Posts: 28 Location: Chennai
|
|
|
|
If the records are not in sequence, for example, if you want the 2nd record and 6th record from member 1 to member 2 in sequence.
Cut the contents into a clipboard
use line command "C" in line 2nd and
a - Clipboard name
Then, use the same command in line 5th and
Then open member2 and paste it after/before as you wish |
|
Back to top |
|
|
jsnair
New User
Joined: 26 Sep 2006 Posts: 38 Location: India
|
|
|
|
Hi satheeshkamal,
It was really good. Thanks for your update. |
|
Back to top |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
satheeshkamal wrote: |
If the records are not in sequence, for example, if you want the 2nd record and 6th record from member 1 to member 2 in sequence.
Cut the contents into a clipboard
use line command "C" in line 2nd and
a - Clipboard name
Then, use the same command in line 5th and
Then open member2 and paste it after/before as you wish |
Good Info, Thanks
Yogeshwar |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Jiji,
The solutions mentioned are probably faster, but you CAN use COPY to do what you want:
On the 6 th line of Member 2 enter an "a", then on the cmd line enter "COPY", then hit enter. On the next panel that appears enter the DSN and member in the space provided {e.g. MY.DSN(MEMBER1)}.
At the bottom of the screen you'll see places to enter the 1st line and last line to copy and the number type. Enter them - Use "R" for the number type.
Member 2
Code: |
************************************ Top of Data *******
000001 The first line of data
000002 The second line of data
000003 The third line of data
000004 The fourth line of data
000005 The fifth line of data
a00006 The sixt line of data
000007 The 7th line of data
000008 The 8th line of data
000009 The 9th line of data
000010 The 10th line of data
****** **************************** Bottom of Data ***** |
Member 1:
Code: |
****** ***************************** Top of Data *******
000001 The first line of data
000002 The second line of data
000003 The third line of data
000004 The fourth line of data
000005 The fifth line of data
000006 The sixt line of data
000007 The 7th line of data
000008 The 8th line of data
000009 The 9th line of data
000010 The 10th line of data
****** **************************** Bottom of Data ***** |
|
|
Back to top |
|
|
|