I have a lookup table that looks like the table below. It is truncated and masked to simplify the problem, but the logic will be the same.
<tbody>
ID
CODE
REASSIGN(CODE)
W12-05
AA
ZZ
W12-05
BB
ZZ
W14-01
CC
CC
W14-03
AA
AA
W15-01
DD
DD
W15-01
DD
DD
</tbody>
ID and CODE are...