View previous topic :: View next topic
|
Author |
Message |
Yashashri
New User
Joined: 12 Feb 2016 Posts: 5 Location: India
|
|
|
|
Hi Guys,
I have two input files and want to merge them. Both files has Header, Detail and trailer record. I want to merge details records and write Header and trailer record only once in Output file and add both files trailer record count and amount field. File is FB and 239.
File 1 :
HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000003 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000004 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000020000000000000183450+
File 2:
File 2 :
HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000005 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000006 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000020000000000000183450+
Output Should be :
HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000003 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000004 123456 100232INTOIIRAUSD201702162
ISCSCNAP160000036BB1702000005 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000006 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000040000000000000366900+
Please help. This is urgent. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
We do not do "urgent". Neither JCL or VSAM can do this. Locked. |
|
Back to top |
|
|
|