IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
 View Only
  • 1.  convert integer 4 byte little endian to hexadecimal

    Posted Mon February 28, 2011 04:24 AM

    Originally posted by: maxbenDA


    Hi all,

    I need help to convert one single integer 4 bytes little endian encoded to his hexadecimal value.

    I tryed to use STREAMTOHEXTEXT function but I've got this failed build result :

    "Argument #1 for function STREMTOHEXTEXT is invalid"

    i built a simple map to try this feature with a integer binary item in input and text character item in output.

    thanks for your help,

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


  • 2.  Re: convert integer 4 bytes little endian to hexadecimal

    Posted Mon February 28, 2011 10:57 AM

    Originally posted by: maxbenDA


    I've got an intermediate solution to convert the 4 bytes integer. I use a middle transformation to convert the number in text binary and then i convert the text binary in hexadecimal with STREAMTOHEXTEXT.

    best regards,
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 3.  Re: convert integer 4 bytes little endian to hexadecimal

    Posted Mon February 28, 2011 11:31 AM

    Originally posted by: TarunB


    Just wondering as I haven't had a chance to test this, but perhaps BCDTOHEX would work in this case.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: convert integer 4 bytes little endian to hexadecimal

    Posted Tue March 01, 2011 03:05 AM

    Originally posted by: maxbenDA


    thanks for your answer, but I've got the same build result : argument invalid
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender