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.  Processing array elements in WTX

    Posted 04/10/18 09:02 AM

    Originally posted by: uvaiseodam


    Hi,

    I need to do the following transformation in WTX. Please find attached.

     

    Please help me in solving this problem.

    Thanks,

    Uvaise Ahmed


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


  • 2.  Re: Processing array elements in WTX

    Posted 04/11/18 05:30 AM
      |   view attached

    Originally posted by: PaulBrett


    That one was relatively simple.

    I use an INDEX for the first record, use the 'next number for data on all the repeating groups, the last of which is discarded, because it doesn't contain any data.

    Thank you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    Example.zip   15 KB 1 version


  • 3.  Re: Processing array elements in WTX

    Posted 04/11/18 06:25 AM

    Originally posted by: uvaiseodam


    Thanks Paul. I have modified the input by adding more fields in to array elements. Could you please help me in generating the required result. PFA.

     

    Thanks,

    Uvaise Ahmed


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

    Attachment(s)

    xml
    Input.xml   752 B 1 version
    xml
    Output.xml   400 B 1 version


  • 4.  Re: Processing array elements in WTX

    Posted 04/11/18 07:21 AM
      |   view attached

    Originally posted by: PaulBrett


    Now you're into proper mapping wizardry.  This involves assigning data rows with numbers and doing LOOKUP() functions referencing those index numbers offset by 1.

    I've used 2 temporary cards with temporary structures here, so you can see the steps in sequence.

    Thank you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    Example2.zip   17 KB 1 version


  • 5.  Re: Processing array elements in WTX

    Posted 04/12/18 02:02 AM

    Originally posted by: uvaiseodam


    Thank you so much Paul. now I can understand how to use temporary cards/maps to achieve the desired result. You are doing a great work.:)

    Uvaise Ahmed


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