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.  substring split

    Posted 04/28/18 10:04 AM

    Originally posted by: Rajkumar_Perla


    Dear All,

    I am new to WTX so couldn't aware of mixed usage of functions.

    For example, I am getting a filed in the input like <Session>987:123:222:44></Session> it is made up of 4 components separated by a : (colon)

    The components contains variable number of length, so it could be like 1.22.3.456 or 11.2.4.4 like that.

    I would like to map third component i.e. 222 to the output field. 

    Looking for your valuable suggestions how to write a rule to fetch specific component.

     

     

     


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


  • 2.  Re: substring split

    Posted 04/30/18 07:26 AM

    Originally posted by: PaulBrett


    Use the WORD() function.

    =WORD(Input,":",3)

    ...would map the 3rd word, with a ':' delimiter.

    Thank you.

    Paul

    Follow me on Twitter


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


  • 3.  Re: substring split

    Posted 05/01/18 08:54 AM

    Originally posted by: Rajkumar_Perla


    Thanks a lot Paul, it worked. 


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