Originally posted by: TarunB
I would assume that you don't want a hard coded solution to search only for the 3rd occurrence. A technically superior option is to create a map which can give you the resulting index for any lookup value that you choose. You can do this as follows:
1) Read in the data row and your lookup value (5849) as 2 inputs
2) Have a single output with a functional map call which EXTRACTs your chosen value from the main data row, as well as selecting the INDEX of that occurrence. This makes use of the binding between the extracted data and the source data, so allowing you to pull out the relevant index value.
Your main input data structure would consist of:
Initiator = HI
Terminator = ~
Record type = explicit infix delimited with asterisk
Record format = consists of a sub-group containing BF and number delimited by colon
It's probably easier for you to just look at the map I knocked up (see attached). This is of course a simplified sample that you are free to build upon.
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange