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.  Reverse the data

    Posted 10/13/15 02:09 PM

    Originally posted by: shelly1


    Hello team ,

    can any body suggest how to reverse the input without using reverse function

    the solution must be generic should be successful for any input  for example 

    input "BOOK"

    output "KOOB" inverted commas (" ") are part of data .

    Thanks in advance

     


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


  • 2.  Re: Reverse the data

    Posted 10/14/15 04:27 AM
      |   view attached

    Originally posted by: paul.brett


    Here is one such solution.

    I have written out my temporary cards, so you can see the different stages.

    Input:

    "BOOK"
    

    Temp1:

    1|"
    2|B
    3|O
    4|O
    5|K
    6|"
    

    Temp2:

    6|"
    5|K
    4|O
    3|O
    2|B
    1|"
    

    Output:

    "KOOB"
    

    There are probably better ways.  See what you can come up with.

    Thank-you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    Reverse.zip   3 KB 1 version


  • 3.  Re: Reverse the data

    Posted 10/14/15 04:32 AM

    Originally posted by: Ejay


    Hello ,

     

    This is the solution i found on my side :

    Your text input is "BOOK"

    First we need to change the text orientation from left to right .

    Then we need to change the visual order to do so i'll use the following functions :

    = SETVISUALORDER(SETORIENTATIONRTL(In1 , "TRUE"),"TRUE")

    Will have as result : "KOOB" .

     

    Hope This Help

     

    Emmanuel

     


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


  • 4.  Re: Reverse the data

    Posted 10/15/15 03:25 AM
      |   view attached

    Originally posted by: Laurent(Satisco)


    Hi,

     

    not sure why you don't want the REVERSE function. However, here's another one

     

     


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

    Attachment(s)

    zip
    ReverseString.zip   4 KB 1 version