Merge Header file and detail file
Posted: Wed Dec 25, 2013 12:58 pm
Hi Experts,
I have a requirement where i have to merge a file having header records and a file having detail records under its respective header records. Both the input files of length 200
Sample file 1 (header):
Sample file 2 (detail):
Output should be like:
Can someone please help me with this?
I have a requirement where i have to merge a file having header records and a file having detail records under its respective header records. Both the input files of length 200
Sample file 1 (header):
HAAAAAA7867AAAA
HBBBBBBB6567BBBB
HCCCCCC5456CCCC
HBBBBBBB6567BBBB
HCCCCCC5456CCCC
Sample file 2 (detail):
D7867ABABABAB
D7867BABABABA
D6567CDCDCDCD
D5456EFEFEFEF
D5456GHGHGHGH
D7867BABABABA
D6567CDCDCDCD
D5456EFEFEFEF
D5456GHGHGHGH
Output should be like:
HAAAAAA7867AAAA
D7867ABABABAB
D7867BABABABA
HBBBBBBB6567BBBB
D6567CDCDCDCD
HCCCCCC5456CCCC
D5456EFEFEFEF
D5456GHGHGHGH
D7867ABABABAB
D7867BABABABA
HBBBBBBB6567BBBB
D6567CDCDCDCD
HCCCCCC5456CCCC
D5456EFEFEFEF
D5456GHGHGHGH
Can someone please help me with this?