Originally posted by: yeswtx
Hello all,
We need to group the input data to get a particular output: (In a map rule)
logic is find the end input fields value whether it falls in 1-5 or 6-0 then create an occurrence for 1-5 , then 6-0, again 1-5.....so on..
Input:
1|18|FREIGHT
2|19|CONTRACTOR.
3|20|7 PIECE(S)
4|21|BSP HAMMER NO.1
5|22|HYDRAULIC HOSES HAMMER NO.1
6|23|LEADERSECTION NO.6 LEADER 2 (LEADERHEAD)
7|24|LEADERSECTION NO.4 LEADER 1
8|25|LEADERSECTION NO.5 LEADER 1
9|26|LEADERSECTION NO.1 LEADER 1 (LEADERFEET)
10|27|SUPPORTFRAME HAMMER NO.1
Output required:
For 18, 19, 20 => 1st occurrence of output segment
For 21, 22, 23, 24, 25 => 2nd occurrence of output segment
For 26, 27 => 3rd occurrence of output segment
FTX+AAA+++FREIGHT CONTRACTOR. 7 PIECE(S)'
FTX+AAA+++BSP HAMMER NO.1 HYDRAULIC HOSES HAMMER NO.1 LEADERSECTION NO.6 LEADER 2 (LEADERHEAD) LEADERSECTION NO.4 LEADER 1 LEADERSECTION NO.4 LEADER 1'
FTX+AAA+++LEADERSECTION NO.1 LEADER 1 (LEADERFEET) SUPPORTFRAME HAMMER NO.1 '
I hope the requirement is clear.
Any response would be helpful.
Regards,
SNK
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender