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.  generating a type tree with the logic as shown

    Posted 01/25/12 05:41 AM

    Originally posted by: Jaango


    Creating a type tree with the below logic

    I can have the input in two formats

    1)The input can be 420 characters
    2)The input can be the second type
    Second type is as below

    a)First 342 characters.
    b)Following there is a group, the group has first 101 characters, followed by another group(occurs 80 times), this group has 40 characters, so for 80 groups we have 3200 characters. This group is followed by another group, which occurs 20 times, which has 11 characters in each group
    The layout is as below
    can be

    
    File   DATA PIC X(420)             or   File   DATA PIC X(342) TopGroup occurs 1 to many times   DATA PIC X(101) SubGroup1 Occurs 80 times DATA PIC X(40) SubGroup2 Occurs 20 times DATA PIC X(11)
    


    How can i get/define a single type tree which will accept these two kind of inputs
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: generating a type tree with the logic as shown

    Posted 01/25/12 08:36 AM

    Originally posted by: paul.brett


    I would suggest a top level choice group.

    First choice has a group containing two objects. The first of these two would be a fixed length object of 420 characters. The second would be a text blob (0:s). On the group level, have a component rule that will only treat the group as valid if the second object is SIZE=0.

    The second choice would the second format, which I'm sure you could easily define yourself.

    Hope that helps.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: generating a type tree with the logic as shown

    Posted 01/27/12 10:20 AM

    Originally posted by: Jaango


    paul,
    Thanks for your input
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender