In the example below, I would like to pick up the 3-byte field from record A and try to apply it to other records with a matching key but I would like to keep the base record A unchanged and keep all the updated records. I thought splice with KEEPBASE would help do the trick but I'm having difficulty applying the update to the duplicate matching records (like the C record and duplicate B records shown in the example below) and keeping those records in the output.
Input:
A KEY1 111
B KEY1 000
C KEY1 000
A KEY2 123
B KEY2 000
B KEY2 000
B KEY2 000
D KEY2 000
D KEY2 000
A KEY3 101
B KEY3 000
C KEY3 000
Output I need:
A KEY1 111
B KEY1 111
C KEY1 111
A KEY2 123
B KEY2 123
B KEY2 123
B KEY2 123
D KEY2 123
D KEY2 123
A KEY3 101
B KEY3 101
C KEY3 101
Can splice help do something like this?