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.  Using FTP Adapter through a Run Map Example

    Posted 06/28/06 09:01 AM

    Originally posted by: SystemAdmin


    Would anybody happen to have an example map that utilizes the FTP adapter through a Run Map and reports errors back that I could take a look at? Would you also be able to provide the types tress for those maps? Any help you could provide with my request would be greatly appreciated.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Using FTP Adapter through a Run Map Example

    Posted 06/29/06 07:50 AM

    Originally posted by: SystemAdmin


    The best way to do this is to have the main map do an FTP GET using the type=D option to get a list of the files on the server.
    Output card would have a functional map, that has the file names passed as data. The functional map would have a PUT file rule to create files with the file name needed as part of the file name and in the data.
    This would trigger a map to do an FTP GET of the specific file.

    There is a potential problem with using FTP in a RUN map. The connection is opened when the map starts and if there are a number of files or a few large files, the commit does not happen until all files are processed and the FTP server could time out to inactivity while the data is being proecessed.

    The method above does not have this problem and can handle files of any size. It also does not error when there are no files available, since there will always be something in the type=D return.

    You will need to create fairly simple trees for this. The tree for parsing the actual data will need to be created or imported based on the data itself.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange