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.  Using SETON() Function

    Posted 01/21/08 03:25 PM

    Originally posted by: mikedb


    I am trying to create a mapping rule for a 1-byte binary integer. There are 8 conditions that I need to test for each of the 8 bits in the byte. If I create a rule for each of the conditions:

    IF(XYZ_1 Field:In1 = "1", SETON(0,1)) + IF(XYZ_2 Field:In1 = "1", SETON(0,2)) + IF(XYZ_3 Field:In1 = "1", SETON(0,3)) .....

    The output was only for the first SETON() function. I get a HEX '80'. How am I able to set each of the 8 bits in one rule?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Using SETON() Function

    Posted 01/22/08 04:11 AM

    Originally posted by: janhess


    I don't think you can add the bits. If every bit was set the result would be greater than the field size. It might be better to define the output as 8 bits and do a rule per bit.

    Message was edited by: janhess
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender