MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Merge Records side by side from two files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Thu Aug 25, 2016 6:27 am    Post subject: Merge Records side by side from two files Reply with quote

Hi,

I have two files and want to merge records from these file side by side in the manner shown below.

File1 with LRECL as 80 & RECFM =FB
Code:

Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 01                                                                     
000002 02                                                                     
000003 03                                                                     
000004 04                                                                     
000005 05                                                                     
000007 06                                                                     
000008 07                                                                     
000009 08                                                                     
000010 09                                                                     
000011 10                                                                     
****** **************************** Bottom of Data ****************************


File2 with LRECL as 80 & RECFM =FB
Code:

Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
000001 AAA                                                                     
000002 BBB                                                                     
000003 CCC                                                                     
000004 DDD                                                                     
000005 EEE                                                                     
****** **************************** Bottom of Data ****************************


Output file with LRECL as 80 & RECFM =FB

Code:

 Command ===>                                                  Scroll ===> CSR 
 ****** ***************************** Top of Data ******************************
 000001 01AAA                                                                   
 000002 02AAA                                                                   
 000003 03AAA                                                                   
 000004 04AAA                                                                   
 000005 05AAA                                                                   
 000006 06AAA                                                                   
 000007 07AAA                                                                   
 000008 08AAA                                                                   
 000009 09AAA                                                                   
 000010 10AAA                                                                   
 000011 01BBB                                                                   
 000012 02BBB                                                                   
 000013 03BBB                                                                   
 000014 04BBB                                                                   
 000015 05BBB                                                                   
 000016 06BBB                                                                   
 000017 07BBB                                                                   
 000018 08BBB                                                                   
 000019 09BBB                                                                   
 000020 10BBB                                                                   
 000021   .                                                                     
 000022   .                                                                     
 000023   .                                                                     
 000024 01EEE                                                                   
 000025 02EEE                                                                   
 000026 03EEE                                                                   
 000027 04EEE                                                                   
 000028 05EEE                                                                   
 000029 06EEE                                                                   
 000030 07EEE                                                                   
 000031 08EEE                                                                   
 000032 09EEE                                                                   
 000033 10EEE                                                                   
 ****** **************************** Bottom of Data ****************************


Thanks,
Siva
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12359
Topics: 75
Location: San Jose

PostPosted: Thu Aug 25, 2016 9:32 am    Post subject: Reply with quote

sivafdms,

You have been a member for close to 10 years and yet you cannot follow simple rules. bonk Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?p=60534#60534
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Thu Aug 25, 2016 1:21 pm    Post subject: Reply with quote

Thanks Kolusu!!

I do search before any post but sometimes I don't get the exact ones, so I post the query.

Thanks,
Siva
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group