IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  How to group data by multiple conditions

    Posted 05/06/16 04:42 AM

    Originally posted by: ZhaoJie


    I need use WTX to organize data like DB group by. following is sample input,  I need group input data by TYPE, MODEL & SERIAL. Can anybody give hint? 

     


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 2.  Re: How to group data by multiple conditions

    Posted 05/09/16 09:18 AM
      |   view attached

    Originally posted by: paul.brett


    I am assuming that in each case, the first three data labels are not always going to be the same?

    So for example, for input:

    TYPE AAAA MODEL AAAA SERIAL AAAA Component 1
    TYPE AAAA MODEL AAAA SERIAL BBBB Component 2
    TYPE BBBB MODEL BBBB SERIAL BBBB Component 3
    TYPE BBBB MODEL DDDD SERIAL BBBB Component 4
    TYPE BBBB MODEL DDDD SERIAL BBBB Component 5
    TYPE CCCC MODEL CCCC SERIAL CCCC Component 6
    TYPE CCCC MODEL CCCC SERIAL CCCC Component 7
    TYPE CCCC MODEL CCCC SERIAL EEEE Component 8


    ...you might get output:

    TYPE AAAA MODEL AAAA SERIAL AAAA {Component 1}
    TYPE AAAA MODEL AAAA SERIAL BBBB {Component 2}
    TYPE BBBB MODEL BBBB SERIAL BBBB {Component 3}
    TYPE BBBB MODEL DDDD SERIAL BBBB {Component 4, Component 5}
    TYPE CCCC MODEL CCCC SERIAL CCCC {Component 6, Component 7}
    TYPE CCCC MODEL CCCC SERIAL EEEE {Component 8}

    Anyway, the enclosed map will work with either of these two input files, producing the outputs shown.

    Thanks.

    Paul.

    Follow me on Twitter     <--- go on, you know you really want to!


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    zip
    Grouping.zip   3 KB 1 version


  • 3.  Re: How to group data by multiple conditions

    Posted 05/10/16 03:51 AM

    Originally posted by: 46S9_xiaowei_li


    Hi Paul,

    The same TYPE, MODEL, SERIAL records may not be in sequence. Such as below example, the Component 1 and Component 9. How to handle such case? Please advise, Thank you.

     

    TYPE AAAA MODEL AAAA SERIAL AAAA Component 1
    TYPE AAAA MODEL AAAA SERIAL BBBB Component 2
    TYPE BBBB MODEL BBBB SERIAL BBBB Component 3
    TYPE BBBB MODEL DDDD SERIAL BBBB Component 4
    TYPE BBBB MODEL DDDD SERIAL BBBB Component 5
    TYPE CCCC MODEL CCCC SERIAL CCCC Component 6
    TYPE CCCC MODEL CCCC SERIAL CCCC Component 7
    TYPE CCCC MODEL CCCC SERIAL EEEE Component 8

    TYPE AAAA MODEL AAAA SERIAL AAAA Component 9

    Output expected is :

    TYPE AAAA MODEL AAAA SERIAL AAAA {Component 1, Component 9}
    TYPE AAAA MODEL AAAA SERIAL BBBB {Component 2}
    TYPE BBBB MODEL BBBB SERIAL BBBB {Component 3}
    TYPE BBBB MODEL DDDD SERIAL BBBB {Component 4, Component 5}
    TYPE CCCC MODEL CCCC SERIAL CCCC {Component 6, Component 7}
    TYPE CCCC MODEL CCCC SERIAL EEEE {Component 8}

     


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 4.  Re: How to group data by multiple conditions

    Posted 05/10/16 04:12 AM
      |   view attached

    Originally posted by: paul.brett


    It becomes a 2 step process.  Sort it first.

    Thank-you.

    Paul.

    Follow me on Twitter     <--- go on, you know you really want to!


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    zip
    Grouping2.zip   5 KB 1 version


  • 5.  Re: How to group data by multiple conditions

    Posted 05/13/16 05:02 AM

    Originally posted by: 46S9_xiaowei_li


    Thanks paul, it is very helpful.


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange