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.  Dropping trailing '0's

    Posted 12/17/04 12:38 PM

    Originally posted by: SystemAdmin


    I'm mapping a flat file to an XHTML define tree. I also map a small 834 file to the same tree.

    My issue revolves around the flat file mapping. Input field is defined as

    Text\Char\
    size = 4-4bytes
    pad = 4, '0' right justified
    pad to - fixed any context

    Output is more simple:

    Text\Char
    size = 0 - *
    pad = none

    Problem is that I when I move a value from input to output it is dropping trailing zeros.

    When I map the same values from an 834 to the same field I capture the trailing zeros.

    Both maps use the same output tree.

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


  • 2.  Re: Dropping trailing '0's

    Posted 01/04/05 07:19 AM

    Originally posted by: SystemAdmin


    I can't be sure but it sounds like Mercator is interpreting your trailing zeros as the pad character and ignoring them. Try removing the pad logic to see if your output is correct. If so, you'll have to work around the pad characters in your rule logic.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange