IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
#Supplychain
 View Only

component rule for a simple input string

  • 1.  component rule for a simple input string

    Posted 08/23/12 10:58 AM

    Originally posted by: Jaango


    Hello guys,

    I am trying to output the field 'VARforLL', to an xml element a. The map file attached. The input is a simple string, '9000400000000000000015ABCDEFGHIJKLMNO'

    The first four chars is message id. The next 8 bytes(64 bits) is a bit map, which will tell the presence of other fields. The 8 bytes should be '4000000000000000', for the PAN Group(an optional group) to occur, as 4 - 0100, leftmost second bit should be tested on for PAN group. If PAN group is occuring the first two bytes of the group indicate the length of VARforLL field, which is 15. I need the output xml, with value ABCDEFGHIJKLMNO(value of VARforLL - length 15).

    1) With component rules defined for PAN group as TESTON of the second left most bit out of total 8 bytes, should be true.

    How can I define this component rule?
    Attaching Here is my input type tree. Already defined the rule, SIZE(VARforLL Field:$)=LLlength Field:$ for the PAN group. I also want to add one more component rule to test the above mentioned BIT.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender