IBM Sterling Transformation Extender

Sterling Transformation Extender

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

 View Only
Expand all | Collapse all

How to do with TypeTree Terminator "Variable" property ?

  • 1.  How to do with TypeTree Terminator "Variable" property ?

    Posted Thu August 13, 2015 09:48 AM

    Originally posted by: steverats


    Hai,

    I am Venkatesh, working on IBM WTX 8.4.2 version.

    Can anyone help me out with an example for Type tree Terminator- Variable property?

     

     


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


  • 2.  Re: How to do with TypeTree Terminator "Variable" property ?

    Posted Mon November 30, 2015 05:24 AM

    Originally posted by: AbhilashR


    Copied from Other post

    ====

    Hi

     

    What you need to use Variable delimiter is an delimiter object as components of a type :

    You can check the type tree provided in our example : C:\IBM\WebSphere Transformation Extender 8.4.1\examples\xml\po4010.mtt

    It use variable delimiters

    Example of syntax objects as components of a type

    The following is an example of defining a syntax object as a component of a group type. The following data represents a message received from multiple departments.

    Each message is made up of segments. Each department uses different segment delimiters and terminators. The message format specifies that the delimiter and terminator are the first two bytes of the message, followed by the actual data.

    To define syntax objects for the delimiter and terminator:

    1. Define two separate syntax objects with an Item Subclass of Syntax, one for the message delimiter and one for the message terminator. Appropriate type names might be SegmentDelimiter and SegmentTerminator.
    2. Define the possible message delimiter values as restrictions of the SegmentDelimiter item type. Define the possible message terminator values as restrictions of the SegmentTerminator item type.
    3. Define these item types as the first two components of the group type Message.
    4. Expand the Delimiter property.
    5. For the variable Delimiter > Item property, select SegmentDelimiter from the drop-down list.
    6. For the variable Terminator > Item property, select SegmentTerminator from the drop-down list.

    During the data validation process, the component SegmentDelimiter appears in the data with a value of *. The group type Segment has a variable delimiter specified as the item type SegmentDelimiter, with the value *. Therefore, it is understood that the segment has * as the delimiter.

    When the value of a syntax object appears as actual data, it can be mapped as data. For example, source data may use different delimiters from several different sources. Acknowledgments of this data must be sent back to the source using the delimiter used in the original data. This data can be mapped from the input to the output if these syntax objects are defined as components within the data.

    When syntax objects are Variable, the Find property must be defined. The Find property determines whether the value of syntax object is set on each occurrence or whether the current setting (or default value) is used.

     

    This is the complete doc on the subject :

    http://www-01.ibm.com/support/knowledgecenter/SSVSD8_8.4.1/com.ibm.websphere.dtx.td.doc/concepts/c_type_design_Syntax_Item_Subclass_Properties.htm?lang=en

     

    Regards,

    Abhilash.


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