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
 

 

Copy records from one member to another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
jsnair

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Fri May 23, 2008 3:29 pm    Post subject: Copy records from one member to another
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri May 23, 2008 3:32 pm    Post subject: Reply to: Copy records from one member to another
Reply with quote

CUT and PASTE

cut data will be saved for the whole TSO session
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Fri May 23, 2008 3:32 pm    Post subject: Reply to: Copy records from one member to another
Reply with quote

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
View user's profile Send private message
jsnair

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Fri May 23, 2008 3:39 pm    Post subject:
Reply with quote

Hi enrico and Aaru,

Thanks for the help. It is now working fine. Earlier I was trying with COPY.
Back to top
View user's profile Send private message
satheeshkamal

New User


Joined: 09 Jan 2007
Posts: 26
Location: Chennai

PostPosted: Fri May 23, 2008 3:55 pm    Post subject:
Reply with quote

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
Code:
Cut a

a - Clipboard name

Then, use the same command in line 5th and
Code:
Cut a append


Then open member2 and paste it after/before as you wish
Back to top
View user's profile Send private message
jsnair

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Fri May 23, 2008 4:08 pm    Post subject:
Reply with quote

Hi satheeshkamal,

It was really good. Thanks for your update.
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Fri May 23, 2008 7:09 pm    Post subject:
Reply with quote

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
Code:
Cut a

a - Clipboard name

Then, use the same command in line 5th and
Code:
Cut a append


Then open member2 and paste it after/before as you wish



Good Info, Thanks

Yogeshwar
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu May 29, 2008 6:25 pm    Post subject:
Reply with quote

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
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am


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