Hi,
I have multiple records for a given account id and trying to combine all records related to each
account into one single record. Number of records for each account may vary from 2 - 4. Can
someone please help to do this using syncsort?.
Input:
Fixed 80 record length file. No header record in the file but i mentioned here for just record layout explanation.
3 - input fields
Acct# Name/Address Type
(1-10) (11-25) (26-30)
111 name1 Name
111 street11 Add
111 street12 Add
222 name2 Name
222 street2 Add
333 name31 Name
333 name32 Name
333 street31 Add
333 street32 Add
Expected output:
looking for output where name & address in the respective fields and spaces for missing field
5 - output fields
Acct# Name1 Name2 Address1 Address2
(1-10) (11-25) (26-40) (41-55) (56-70)
111 name1 street11 street12
222 name2 street2
333 name31 name32 street31 street32
Thank you.