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.  PreProcessing files

    Posted 07/29/19 10:19 AM

    Originally posted by: DenisBE


    Hello,

    Here is my project :

    I receive in a directory different files.

    These files contain a field (MessageName) which allows to define what is the file type.
    Depending on the MessageName, the files must be redirected to subdirectories for specific treatment.

    My questions :
    How to create a reference file (XSLT, table, file ...?) That would include a "MessageName" (key) column and a "directory" column ?

    Example of the reference file (or table) :
    MessageName      Directory
    A060                      D: \ .... \ A060
    INSX                      D: \ .... \ INSX
    ....
    Then how to read the input file, consult the reference file and redirect the file to the directory associated with the MessageName?

     

    If you have an example I'm interested...
     

    Regard's

    Denis.

     

    IBM Transformation Extender Design Studio Version : 10.0.0.0
    IBM Transformation Extender Integration Flow designer Version : 10.0.0.0

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


  • 2.  Re: PreProcessing files

    Posted 08/20/19 06:23 PM

    Originally posted by: Bragger


    You can create a reference file and store it somewhere on server. Now your WTX map will have 2 input cards - First one will read input file and second will be this reference file. Now on output side, create a group consisting of (s) field like this - Group (s) - Field. Create a functional map for each record in input file and pass entire reference file along with it. Inside the functional map, you can try something like this - PUT ("FILE", LOOKUP(<Directory Name from reference file>, Message Name from Input file = Message Name from Reference File), PACKAGE(Input Record)). 

    I hope this helps.


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


  • 3.  Re: PreProcessing files

    Posted 08/21/19 07:07 AM
      |   view attached

    Originally posted by: PaulBrett


    Please find an example attached.

    Thank you.

    Paul

    Follow me on Twitter


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

    Attachment(s)

    zip
    SortFiles.zip   4 KB 1 version