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.  Grouping of data

    Posted 03/07/16 07:20 AM

    Originally posted by: Ole Haavard Haug-Larsen


     

    Hi.

    I have a simple input-file with only two fields: Bankid (4 numeric) and Amount (17 numeric). Here is en example:

    285000000000000017949
    285000000000000166500
    303000000000000012912
    303000000000000006398
    303000000000000004720
    306000000000000001643
    306000000000000006034
     

    I want to create a new file where each record consist of only unique bankid's - and the sum of amount pr. bankid

     

    How do I do that??

     


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


  • 2.  Re: Grouping of data

    Posted 03/08/16 03:14 AM
      |   view attached

    Originally posted by: Laurent(Satisco)


    Hi,

     

    you need to use Control Break Logic with component rules.

     

    The attached sample show this on your data.


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

    Attachment(s)

    zip
    demo.zip   5 KB 1 version


  • 3.  Re: Grouping of data

    Posted 03/14/16 08:06 AM

    Originally posted by: DennisRitche


    Hey Laurent,

    can you please let me know what exactly the mentioned component rule(Bank:$ = Bank:$[LAST]) do?

     

    Thanks in Advance.


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


  • 4.  Re: Grouping of data

    Posted 03/14/16 08:24 AM


  • 5.  Re: Grouping of data

    Posted 03/08/16 04:57 AM
      |   view attached

    Originally posted by: paul.brett


    This is how I did it....

    Input:

    285000000000000017949
    285000000000000166500
    303000000000000012912
    303000000000000006398
    303000000000000004720
    306000000000000001643
    306000000000000006034


    Output:

    3 : 7

    285000000000000184449
    303000000000000024030
    306000000000000007677

    ....using Control-Break logic on the input Typetree, and a simple SUM() function on output.

    Thank-you.

    Paul.

    Follow me on Twitter


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

    Attachment(s)

    zip
    CtrlBreakSum.zip   3 KB 1 version


  • 6.  Re: Grouping of data

    Posted 03/09/16 08:18 AM

    Originally posted by: Ole Haavard Haug-Larsen


    Thanks a lot! It solved my problem.

    Just one final question: is it possible to do this without changes in the Typetree? I have a similar case where I would prefer to not make changes in the Typetree (which are shared with other).


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


  • 7.  Re: Grouping of data

    Posted 03/10/16 04:15 AM
      |   view attached

    Originally posted by: paul.brett


    Yes, it is possible with a little bit of messing about with EXTRACT().

    Thank-you.

    Paul.

    Follow me on Twitter


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

    Attachment(s)

    zip
    simple.zip   4 KB 1 version


  • 8.  Re: Grouping of data

    Posted 03/14/16 08:25 AM

    Originally posted by: Laurent(Satisco)


    Agree with Paul, you can do with EXTRACT, but this can be a performances killer if the data is not very small.


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