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.  How to create multiple output files

    Posted 10/01/14 05:04 AM

    Originally posted by: WTX_Developer


    Hi,

     

    How to create the multiple output files in WTX?

     

    I am developing a map for one of the EDI transaction. Input file can contain the any number of ISA segment. Requirement is I have to create one XML file for each ISA segment.

    Input file structure:

    ISA*01
     GS
       ST
       SE
      GE
    IEA
    ISA*02
     GS
       ST
       SE
      GE
    IEA

    I just need map rule to create the multiple output files.

     

    Please assist..

     


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


  • 2.  Re: How to Crearte the multiple output files

    Posted 10/01/14 05:49 AM
      |   view attached

    Originally posted by: paul.brett


    Attached, you will find an example.

    Each segment is created as a file with a name of Output-{ISA Sequence Number}.txt

    Thank-you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    segment.zip   10 KB 1 version


  • 3.  Re: How to Crearte the multiple output files

    Posted 10/06/14 01:23 AM

    Originally posted by: WTX_Developer


    Paul,

    Thanks for the segment.zip.

    I need slightly different way. I have to convert each ISA elements to one XML file and also I have many mappings from EDI segment to XML element. What you have done is, packaged completed ISA segment to one file and there is no mapping involved.

    In my scenario I have to traverse through the ISA segment , then GS segment and then ST segment then map it to XML element and finally  I have to create one XML file out of it.

    Please suggest.

    Thanks in advance.

     


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


  • 4.  Re: How to Crearte the multiple output files

    Posted 10/07/14 04:00 AM
      |   view attached

    Originally posted by: paul.brett


    OK, instead of using the PUT, as I have done in my example, you would use a RUN() to send to a child map, to do all the mapping you need, and create the Individual output files (one for each ISA segment) you require.

    I have revised the example slightly.

    Should you require further assistance, we're kind of getting into the realms of a Services engagement.  I recommend you contact your local IBM office to arrange for an onsite visit.

    Thank-you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    segment2.zip   11 KB 1 version


  • 5.  Re: How to Crearte the multiple output files

    Posted 10/13/14 04:11 AM

    Originally posted by: WTX_Developer


    Thanks Paul, I got the logic to achieve this.


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