Originally posted by: SystemAdmin
I am a bit ashamed to admit that I cannot get my map rule utilizing this function to work properly. I am running a functional map that has an Index passed as one of the inputs. I need to use that index in conjunction with either a LOOKUP or EXTRACT if possible to output particular instances of a repeatable element.
My rule is:
=CHOOSE(TRIMRIGHT(EXTRACT(description D05 Fields:D05 Segments:InboundPO, TRIMRIGHT(tag D05 Fields:D05 Segments:InboundPO) = "CI")), (SeqNum * 3) - 2) + "<NL>" +
CHOOSE(TRIMRIGHT(EXTRACT(description D05 Fields:D05 Segments:InboundPO, TRIMRIGHT(tag D05 Fields:D05 Segments:InboundPO) = "CI")), (SeqNum * 3) - 1) + "<NL>" +
CHOOSE(TRIMRIGHT(EXTRACT(description D05 Fields:D05 Segments:InboundPO, TRIMRIGHT(tag D05 Fields:D05 Segments:InboundPO) = "CI")), SeqNum * 3) + "<NL>"
This whole process is working with the CLONE function to capture every 3 instances of a repeatable segment.
Any suggestions are greatly appreciated.
Thanks,
Jennifer
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender