Originally posted by: LaurentB
Hi Vickey,
yes, the GETANDSET can be amazingly powerful (but also have some strange effects, it took me 2 hours yesterday to troubleshoot the mapping, fighting with the offset values, before I figured out that doing the GETANDSET before computing the offset was a pretty bad idea).
I know a mapping wizard (may be he'll recognize himself) who thought about using to do a tricky mapping easily :
he needed to map fields A and B, A occuring before B but depending on B value. For this, he mapped B to A, then mapped B with GETANDSET so that GETANDSET generated A's new value based on the current A's value, set A to this new value, but returned the former value to B... I'd have mapped in two steps to do the same, which would have been a waste of time.
Laurent
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange