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.  8.2 WTX Put function

    Posted 01/15/10 05:27 PM

    Originally posted by: denzer


    The documentation is pretty worthless since the File adapter is built into the launcher and not external. I don't thing the Put function supports a file append option but just in case, does anyone know a way to make it append.

    code:
    = Put ("File"
    , "errorFile.dat"
    , Package (RowRecord))

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


  • 2.  Re: 8.2 WTX Put function

    Posted 01/15/10 05:40 PM

    Originally posted by: lanapoli


    You are correct that you cannot append using the PUT function.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: 8.2 WTX Put function

    Posted 01/15/10 05:44 PM


  • 4.  Re: 8.2 WTX Put function

    Posted 01/15/10 05:52 PM

    Originally posted by: denzer


    Thanks folks, always good to confirm that I wasn't missing anything. I know how to code it I was just wishing IBM would make it easier for me.

    IBM Product Improvement; the Put function needs a parameter to allow it to support appending to a file.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 5.  Re: 8.2 WTX Put function

    Posted 01/20/10 07:24 AM

    Originally posted by: LaurentB


    To be 100% correct, what you need is not an improvement of the PUT function, which does all a given adapter can do, but an improvement of the FILE adapter, so that it accepts commands, just like "regular" adapters do... or you could write your own adapter !

    Otherwise, the RUN map is the only practical solution
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 6.  Re: 8.2 WTX Put function

    Posted 01/20/10 10:39 AM

    Originally posted by: repanzer


    ^^ 110% correct. Wouldn't it be nice if in an output card, you could supply a date/time stamp for a filename? You HAVE to run a map (extra code) or do a PUT statement (slight extra code, double the resources) to do so.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 7.  Re: 8.2 WTX Put function

    Posted 01/18/10 01:59 PM

    Originally posted by: repanzer


    You may have to run a map with -OF1+ c:\file.txt, where the + says append.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender