View previous topic :: View next topic |
Author |
Message |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Thu Aug 25, 2016 6:27 am Post subject: Merge Records side by side from two files |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Thu Aug 25, 2016 1:21 pm Post subject: |
|
|
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 |
|
|
|
|